Validator.showErrors()

Validator.showErrors( errors )

Description: Show the specified messages.

Example:

Adds and shows error message programmatically.

1
2
3
4
var validator = $( "#myshowErrors" ).validate();
validator.showErrors({
"firstname": "I know that your firstname is Pete, Pete!"
});