开发者

jQuery validation, how to auto clear error messages of hidden fields?

开发者 https://www.devze.com 2023-02-05 12:28 出处:网络
The jquery validate plugin auto removes error messages of visible fields when a value is entered, i have one hidden field populated by cust开发者_如何学JAVAom events whose error messages do not auto c

The jquery validate plugin auto removes error messages of visible fields when a value is entered, i have one hidden field populated by cust开发者_如何学JAVAom events whose error messages do not auto clear when the value is set. What would be a clean way to achieve this?

Thanks in advance for your help,


OK, should anyone be interested in how to do this here is a simple way:

$('.error:contains("here goes the text of the error message you want to remove")').remove();
0

精彩评论

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