DiegoLopesLima / validate

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

Reformulate structure #27

Closed DiegoLopesLima closed 11 years ago

DiegoLopesLima commented 11 years ago

Example:

// Validates a form.
$('form').validate('validate');

// Destroy all events and data of plugin.
$('form').validate('destroy');

// Sets the filter options to `*`.
$('form').validate('option', 'filter', '*');

// Gets the filter option.
$('form').validate('option', 'filter');

// Sets the conditional option.
$('form').validate('option', 'conditional', {
    property : 'value'
});