Melursus
Melursus

Reputation: 10578

JQuery Validation - Print message when field is valid

With the JQuery Validation Plugin is it possible to print 'Ok' when the field is correct? When there's an error, I can show a customizable error message. Is the same thing possible when there's no error in the field and it's content is valid (I mean it's not empty) ?

UPDATE

Here's an example of what I want to achieve : Example. When the value of the field is correct, a checkbox image appear at the right of the field.

Upvotes: 1

Views: 3253

Answers (1)

Robert Harvey
Robert Harvey

Reputation: 180788

You can use the Plugin's valid() method to see if the field validates, and display your message if it returns true.

http://docs.jquery.com/Plugins/Validation/valid

Upvotes: 2

Related Questions