2010-10-13, 07:58 AM
Alright I need some help with JavaScript.
So say I have the following drop down:
And I also have a link:
How can I get the link's location to change whenever the user selects a value from the drop down box? (eg if the user selects Google the link goes to http://google.com)
So say I have the following drop down:
<select id="dropdown">
<option value="http://google.com">Google</option>
<option value="http://wikipedia.com">Wikipedia</option>
...
</select>
And I also have a link:
<a target="_blank" href="#">Go</a>
How can I get the link's location to change whenever the user selects a value from the drop down box? (eg if the user selects Google the link goes to http://google.com)