Monday, December 8, 2014

React when a dropdown menu changes with jQuery!

$(function() {
   $("#template").bind("change", function(){
      window.location = "foo.jsp?bar=" + $(this).find(':selected').val();
   });
});

No comments:

Post a Comment