Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 513
wlarcheveque Avatar asked Apr 12 '10 21:04

wlarcheveque


2 Answers

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.

like image 52
Nick Craver Avatar answered Oct 04 '22 21:10

Nick Craver


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

#login-form label.error {
  display: none !important;
}
like image 41
Ido Schacham Avatar answered Oct 04 '22 20:10

Ido Schacham