Skip to content
This repository has been archived by the owner on Feb 10, 2019. It is now read-only.

Commit

Permalink
bypassing validation for buttons with 'formnovalidate' attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcichonski committed Jan 31, 2013
1 parent 80c4fd0 commit a5ea85a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jquery.h5validate.js
Expand Up @@ -384,6 +384,10 @@
$forms
.attr('novalidate', 'novalidate')
.submit(checkValidityOnSubmitHandler);

$forms.find("input[formnovalidate][type='submit']").click(function(){
$(this).closest("form").unbind('submit', checkValidityOnSubmitHandler);
});

return this.each(function () {
var kbEvents = {
Expand Down

0 comments on commit a5ea85a

Please sign in to comment.