Can someone tell me the correct syntax for the Select statement that uses the onChange event? Here's what I have, which is obvioulsy not working:
<script type="text/javascript">
function mainOptions(optionsVar) {
if (OptionsVar == 'Medical') {
document.getElementById('medical').style.display="";
}
}
</script>
<form name="expenses">
<p><select id="selOptions" onChange="mainOptions(this);"></p>
<option>Please Select</option>></p>
<p><option>Photography</option> </p>
<p><option>Computers</option></p>
<p><option>Medical</option></p>
<p><option>Other</option></p>
</select>
</form>



