zonome
03-20-2003, 08:28 AM
I am trying to display the values that the users select from a drop down list....this is the code...
<form name="formName">
<select name="mySelect" onChange='alert(mySelect.options[selectedIndex].value)'>
<option value=UK>UK</option>
<option value=ITA>Italy</option>
......
.......
</select>
but Every time I run it I get the
mySelect.options is null or not an object
error message.
What else do I need to do?
<form name="formName">
<select name="mySelect" onChange='alert(mySelect.options[selectedIndex].value)'>
<option value=UK>UK</option>
<option value=ITA>Italy</option>
......
.......
</select>
but Every time I run it I get the
mySelect.options is null or not an object
error message.
What else do I need to do?