Return to Snippet

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

Initial Code
  // 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

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

Initial Title
JQuery - Got to URL on Option Select

Initial Tags

Initial Language