Open a link via a button press chosen from a form select option

bongman420

New Member
I have a small form which is dynamically built using a list of URLs.\[code\]<form> <select> <option value="http://stackoverflow.com/questions/14076130/google.com">google.com</option> <option value="http://stackoverflow.com/questions/14076130/bing.com">bing.com</option> </select> <button class="btn" type="button">Go!</button></form>\[/code\]By hitting the 'Go!' button I would like to open a new window with the correct URL.I'm pretty sure I can't do this through straight HTML but is there a jQuery way?Thanks
 
Back
Top