Jump to content

I forget how...A form with an option/select that submits onchange()


kvnmck18

Recommended Posts

Sorry for this post but it's annoying me (I know it's basic)...How can you submit a URL of an <option> <select> onchange()?Thank you:)

Link to comment
Share on other sites

Here's one way:

<select onchange="location.href = this.options[this.selectedIndex].value;"><option value="http://www.google.com/">Google</option><option value="http://www.w3schools.com/">W3Schools</option></select>

Link to comment
Share on other sites

Thank you, buddyIt has been like 2 years since I've used something like this. THANKS AGAIN!

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...