问题
I want to reset the errors detected on the form without clearing the form contents. So for this case, validator.resetForm() wont work.
How can I achieve this?
回答1:
You could do (adjust if you have custom errors)...
form.find('label.error').remove();
来源:https://stackoverflow.com/questions/5335337/jquery-validation-reset-error-messages-without-clearing-the-form