Nudua Posted March 18, 2006 Share Posted March 18, 2006 I need to make a dropdownlist that goes to a link when you click on the name, or when you click a go button. Can anybody write a code for this? Link to comment Share on other sites More sharing options...
Mephistopheles Posted March 18, 2006 Share Posted March 18, 2006 First Part... <!-- Drop down Box --!><html><body><form><select name="Links"><option value="Variable 1">Choice One<option value="Variable 2">Choice Two<option value="Variable 3">Choice Three<option value="Variable 4">Choice Four</select></form> That is the basic format for a dropdown list.I honestly don't know how to make them links.I was trying: <option value="Variable 1"><a href=www.url.com>Choice One</a> But that doesn't work apparently. Sorry I couldn't be more of help. Link to comment Share on other sites More sharing options...
boen_robot Posted March 18, 2006 Share Posted March 18, 2006 Add something like: <input type="submit" value="Go"> in the form element to get a Submit button. You may have some JavaScript to activate it.Also, the form must have the action attribute to point to a JavaScript funcion or a server side file to process the form. Link to comment Share on other sites More sharing options...
scott100 Posted March 18, 2006 Share Posted March 18, 2006 I need to make a dropdownlist that goes to a link when you click on the name, or when you click a go button. Can anybody write a code for this?<{POST_SNAPBACK}> This script can be found on w3schools.comhttp://www.w3schools.com/dhtml/tryit.asp?f...=trydhtml_menu3 Link to comment Share on other sites More sharing options...
Nudua Posted March 19, 2006 Author Share Posted March 19, 2006 Thanks for the help! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now