开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜