Created
August 16, 2013 19:39
-
-
Save thomasthesecond/6252897 to your computer and use it in GitHub Desktop.
onchange event for select elements to change window.location. Good for EE category filtering.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.changeWindowLocationWithSelect = function() | |
{ | |
$('.' + classes.selectControllerClass).change(function() | |
{ | |
if (this.value) | |
window.location.href = this.value; | |
else | |
return false; | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment