I have 2 dropboxes, is ther a way to force user to select in order wich mean they have to select the dropbox # 1 before they select the dropbox # 2?
Thanks
The ScareCrow - 01 Oct 2004 00:46 GMT
Only with javascript, the attached is a working example
Ken
<script language="JavaScript">
<!--
function checkSelection(form){
if(form.selectOne[form.selectOne.selectedIndex].value == 0){
alert('Must make a selection from select 1 first.');
return false;
}
}
//-->
</script>
<form action="" method="post" name="form1" id="form1">
<table>
<tr>
<td>
<select name="selectOne">
<option value="0">Please Select</option>
<option value="1">select 1 option 1</option>
</select>
</td>
<td>
<select name="selectTwo" onchange="return checkSelection(this.form);">
<option value="0">Please Select</option>
<option value="1">select 2 option 1</option>
</select>
</td>
</tr>
</table>
</form>