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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drop down list hyperlink 1

Status
Not open for further replies.

humbletechie

IS-IT--Management
May 3, 2001
33
0
0
US
Hi,

I have a form drop down list with 8 options. I would like to make it so if one of the options is selected, it routes to another form. If any of the other 7 are selected it stays on the same page. I would like the 1 option to re-oute to another form without having to submit the original form. The reason for this is that one option requires different info to be filled out.

Thanks in advance!
 
<html>
<head>
<script language=&quot;javascript&quot; type=&quot;text/javascript&quot;>
<!--
function gotox(x) {
if (document.theform.theselect.value == 'thisone') {
window.location = x;
}
}
\\-->
</script>
</head>
<body>
<form name=&quot;theform&quot;>
<select name=&quot;theselect&quot; onchange=&quot;gotox(' <option>not this one
<option>nope ...
<option>not again..
<option>niet ! nada !
<option value=&quot;thisone&quot;>this is the one
<option>u passed it
<option>i told u ! u passed it !
</select>
</form>
</body>
</html> ---------------------------------------
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top