开发者

jQuery validation: reset error messages without clearing the form

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜