Skip to content

Instantly share code, notes, and snippets.

@tarolandia
Created July 22, 2011 20:47
Show Gist options
  • Save tarolandia/1100386 to your computer and use it in GitHub Desktop.
Save tarolandia/1100386 to your computer and use it in GitHub Desktop.
Add resetAform to jQuery
$.fn.extend({
reset: function() {
return this.each(function() {
$(this).is('form') && this.reset();
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment