How can I hide the label created by jQuery Validator?
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;
}
精彩评论