DiegoLopesLima / validate

A simple jQuery plugin to validate forms.
301 stars 217 forks source link

Custom selectors #49

Open DiegoLopesLima opened 10 years ago

DiegoLopesLima commented 10 years ago

Create custom selectors.

Example:

// Valid fields.
jQuery(':validate(valid)');

// Invalid fields.
jQuery(':validate(invalid)');

// Pattern is invalid.
jQuery(':validate(pattern=invalid)');

// Required but invalid.
jQuery(':validate(required=invalid)');