-
-
Save MarkVaughn/4975405 to your computer and use it in GitHub Desktop.
Chaining reset function for jQuery, pass a function to bind on the reset event.
This file contains hidden or 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
(function($){ | |
$.fn.reset = function(fn) { | |
return fn ? this.bind("reset", fn) : this.trigger("reset"); | |
}; | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment