Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving selected value of drop down

Status
Not open for further replies.

mangocinn

Programmer
Jul 26, 2001
66
US
Need help...
How can I retrieve the selected value of a drop down before hitting submit. I need to find out the selection so that I can limit the options in another drop down in the same form.
Please help...
 
Eg:

<script language='JavaScript'>
function visit(newURL) {
if (newURL != &quot;&quot;) {
location.href=newURL
}
}
</script>


<form>
<select onchange=visit(this.options[selectedIndex].value)>
<option selected value=&quot;&quot;>Pick search engine
<option value=' <option value=' <option value=' <option value='</select>
</form>
br
Gerard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top