You want the resetForm()
method:
var validator = $("#myform").validate(
...
...
);
$(".cancel").click(function() {
validator.resetForm();
});
I grabbed it from the source of one of their demos.
Note: This code won’t work for Bootstrap 3.
More Related Contents:
- How to display messages from jQuery Validate plugin inside of Tooltipster tooltips?
- jQuery validation: change default error message
- jQuery Validation plugin: disable validation for specified submit buttons
- jQuery Validate – require at least one field in a group to be filled
- validating multiple textbox having same name with jquery validator validates only first input
- jQuery Validate Required Select
- jQuery validator and a custom rule that uses AJAX
- How to validate array of inputs using validate plugin jquery
- Unobtrusive validation in Chrome won’t validate with dd/mm/yyyy
- ASP.net MVC 3 jQuery Validation; Disable Unobtrusive OnKeyUp?
- jQuery Validate plugin – password check – minimum requirements – Regex
- jQuery validate plugin: validate on blur() by default
- How can I use jQuery validation with the “chosen” plugin?
- jQuery Validate Ignore elements with style
- Jquery Validation for Dynamically Created Fields
- onkeyup and onfocusout is not working in jQuery Validate
- How to add a ‘submitHandler’ function when using jQuery Unobtrusive Validation?
- jquery validation: prevent form submit
- $(“#form1”).validate is not a function
- jQuery Validation plugin: validate check box
- Manually set unobtrusive validation error on a textbox
- jquery client side validation not working in MVC3 partial view
- Jquery validation not working with ckeditor
- JQuery.validate – one rule on blur only; the rest should be normal?
- jQuery validator and datepicker click not validating
- jquery validation not waiting for remote validation to return true, considers form valid
- How to include JavaScript files by h:outputScript? [duplicate]
- validation for at least one checkbox
- jQuery validate plugin : accept letters only?
- jQuery validation onblur