I need to pass the selected value (not text) of a dropdown to a javascript function. My select tag looks like this:
<select name=mySelect size=1 onchange="return myFunc(document.formname.mySelect.value">
"value" does not work, nor does "selectedIndex", "selectedValue", nor does "selectedindex.value".
How can I do this?
<select name=mySelect size=1 onchange="return myFunc(document.formname.mySelect.value">
"value" does not work, nor does "selectedIndex", "selectedValue", nor does "selectedindex.value".
How can I do this?