Click to See Complete Forum and Search --> : select


tiger66
07-06-2003, 12:51 AM
Hi
I am just wondering how can I use javascript to determine the value of option selected from the select tag?

Thanks

Jona
07-06-2003, 12:54 AM
<select size="1" name="mySel" onChange="alert(this.options[this.options.selectedIndex].value);">
<option value="A">One!</option>
<option value="B">Two!</option>
<option value="C">Three!</option>
</select>


[J]ona