Reputation: 9366
How can I force the framework to validate a specific field?
I saw somewhere that I can call $("form").validate().form()
to force the entire form to validate, but I only want to check just the one field.
Upvotes: 2
Views: 4110
Reputation: 217293
You can use the element
method of the Validator object:
element( element )
Returns: BooleanValidates a single element, returns true if it is valid, false otherwise.
Example:
$("#myform").validate().element( "#myselect" );
Upvotes: 5