Skip to content

Instantly share code, notes, and snippets.

@ReactiveRaven
Created July 12, 2012 21:07
Show Gist options
  • Save ReactiveRaven/3101018 to your computer and use it in GitHub Desktop.
Save ReactiveRaven/3101018 to your computer and use it in GitHub Desktop.
Example hooking jquery.form up to jqBootstrapValidation
$("...").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