Created
July 12, 2012 21:07
-
-
Save ReactiveRaven/3101018 to your computer and use it in GitHub Desktop.
Example hooking jquery.form up to jqBootstrapValidation
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
$("...").ajaxForm({ | |
beforeSubmit: function (arr, $form, options) { | |
if ($form.find(":input").jqBootstrapValidation("hasErrors")) { | |
return false; /* we just found errors, so don't submit yet */ | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment