开发者

jQuery validation: reset error messages without clearing the form

开发者 https://www.devze.com 2023-02-17 03:52 出处:网络
I want to reset the errors detected on the form with开发者_运维百科out clearing the form contents. So for this case, validator.resetForm() wont work.

I want to reset the errors detected on the form with开发者_运维百科out clearing the form contents. So for this case, validator.resetForm() wont work.

How can I achieve this?


You could do (adjust if you have custom errors)...

form.find('label.error').remove();
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号