wlarcheveque
wlarcheveque

Reputation: 972

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!

Upvotes: 14

Views: 15589

Answers (2)

Ido Schacham
Ido Schacham

Reputation: 340

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

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

Upvotes: 4

Nick Craver
Nick Craver

Reputation: 630429

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.

Upvotes: 33

Related Questions