Skip to content

Instantly share code, notes, and snippets.

@richardballard
Last active November 16, 2018 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardballard/ca06ebd2a6c8700825bb818c97f5bd34 to your computer and use it in GitHub Desktop.
Save richardballard/ca06ebd2a6c8700825bb818c97f5bd34 to your computer and use it in GitHub Desktop.
jQuery Validate - Parse form
function reinitialiseFormValidation(elementSelector) {
var validator = $(elementSelector).validate();
validator.destroy();
$.validator.unobtrusive.parse(elementSelector);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment