Return to Snippet

Revision: 43402
at March 23, 2011 09:48 by smoothdzion


Initial Code
$(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;
  });
});

Initial URL
http://www.mycollegesandcareers.com

Initial Description
Use this to go to a URL when selecting an option.

Initial Title
JQuery - Got to URL on Option Select

Initial Tags
jquery

Initial Language
jQuery