jQuery: The Write Less, Do More JavaScript Library

Plugins/Validation/Validator/element

From jQuery JavaScript Library

Jump to: navigation, search

« Back to Plugins/Validation/Validator

element( element )

Validates a single element, returns true if it is valid, false otherwise.
This behaves as validation on blur or keyup, but returns the result.
Arguments:
elementSelector
An element to validate, must be inside the validated form.


Examples:

Triggers element validation programmatically.

$("#myform").validate().element( "#myselect" );

NameType