5

With regard to the post here, how does one remove these errors once they've been shown and resolved?

I've added an error via:

var errorArray = {};
errorArray["Slug"] = 'Some error message for the Slug text box';
$('#SomeFormId').validate().showErrors(errorArray);

But I can't get the errors to clear after an ajax post of the form.

1 Answer 1

7
var validator = form.validate();
$('#SomeFormId').find('.field-validation-error span').each(function () {
    validator.settings.success($(this));
});
validator.resetForm();
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.