开发者

How can I hide the label created by jQuery Validator?

开发者_JAVA百科

I am currently applying a simple simple to my validated forms (red background and border) although jQuery validator appends some label with : Field is required.

I just dont want any text to appear.

Thankyou!


You could override the errorPlacement option, like this:

errorPlacement: function(error, element) { }

Then it simply doesn't append the it's error label element anywhere.


Another option is to use CSS to hide the error labels. E.g.:

#login-form label.error {
  display: none !important;
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜