The plugins site is currently in development.
We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.
okValidate
A reasonably sized (12kb uncompressed, 6.8kb minified) form-validation plugin.
Actually it would only be 7 kb uncompressed, and 3.8kb minified, but the
email address and url validator regexps are ginormous (you could easily remove
them if you want to use a lighter regexp).
Usage
okValidate favors convention over configuration. To validate a particular field,
add a class to the field name of one or more validators.
<input class='email required' name='email' type='text' />

This will validate the field with the 'required' and 'email' validators (built-in).
To add additional validators you must add properties to or extend the
$.fn.okValidate.validators object and/or the $.fn.okValidate.messages
object. In order to properly validate, both the validator, and corresponding
messages must have the same key.
$.extend($.fn.okValidate.validators, {
 my_validator: /^foo$/
});
$.extend($.fn.okValidate.messages, {
 my_validator: "#{name} answer was not 'foo'"
});

'Validations' and 'Validation Messages' live in separate objects
to allow redefining of of validations separately from the messages (validations are
mostly identical - messages can be more unique).
Validators can be either a function or a regexp. If a function, it
should return true if the input is valid, and false if it is not. Regexps should
attempt to match a valid input.
When writing messages, you can add replacement patterns. Anything inside
of the #{...} will be replaced with the corresponding attribute of the input.
That is to say #{name} will be replaced with the name attribute from
the input, and #{id} with the id. Additional transformation of this property
will be performed by the 'replacementFormatter' method. The default is to
replace underscores and dashes with spaces and to strip brackets.
Usage
$("form").okValidate({...options...})

