开发者

How can I hide the label created by jQuery Validator?

开发者 https://www.devze.com 2022-12-26 08:28 出处:网络
开发者_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.
开发者_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

精彩评论

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