Is there a function in jquery.validate that will reset a single field like resetForm does for a form?
You can do the following to validate a single field:
$('#your_field').valid();
Maybe it will help someone :-)
Thanks!
Can't find anything built in to the validation library but this hack works:
$('#email').removeClass('error').next('label.error').remove();
this resets the entire form
var validator = $("#myform").validate();
validator.resetForm();
this will reset only the name
element
$("#skip").click(function() {
var rules = $("#name").removeAttrs("min max"); // remove min and max
$("#form").submit(); // submit, as there are no attributes, it will not have an error
$("#name").attr(rules); // add it again so you can validate it
});