unexpected error

wxdqz

New Member
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=http://www.webdeveloper.com/forum/archive/index.php/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?
 
Back
Top