You are here: irt.org | FAQ | JavaScript | Form | Q1550 [ previous next ]
Either make the first item a dummy one "Please select" and use:
<script language="JavaScript"><!-- if (document.myForm.mySelect.selectedIndex < 0) someThingSelected=true //--></script>
Or you need to loop through all the entries:
<script language="JavaScript"><!-- if (document.myForm.mySelect.selectedIndex < 0) { morethanone = false; for (i=document.myForm.mySelect.selectedIndex;i