I have two select boxes, but I only want the user to be able to select only one of them. Both boxes are dynamic, and populate data from recordsets.
Both boxes should be initially enabled. Once the user make a selection in one of the boxes, the other should become disabled. If the user changes his mind and wants to select the other box, he should be able to select the first option (Option 0) in the box to re-enable the other box.
Here are some sample boxes to help get you started.
Thanks in advance for your help!
Both boxes should be initially enabled. Once the user make a selection in one of the boxes, the other should become disabled. If the user changes his mind and wants to select the other box, he should be able to select the first option (Option 0) in the box to re-enable the other box.
Here are some sample boxes to help get you started.
Code:
<html>
<head>
</head>
<body>
<form name="frmFilter">
<select name="lstCounty" id="lstCounty" onChange="">
<option selected value="0">By County...</option>
<option value="1">Other option 1</option>
<option value="2">Other option 2</option>
</select>
<select name="lstCity" id="lstCity" onChange="">
<option selected value="0">By City...</option>
<option value="1">Other option 1</option>
<option value="2">Other option 2</option>
</select>
</form>
</body>
</html>
Thanks in advance for your help!