/ Published in: jQuery

Use this to go to a URL when selecting an option.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(function(){ // bind change event to select $('#select_id').bind('change', function () { var url = $(this).val(); // get selected option value if (url) { // require url to have value window.location = url; // open url } return false; }); });
URL: http://www.mycollegesandcareers.com
Comments
