jQValidate – jQuery Form Validation Plugin

jQValidate is a plugin for jQuery and jQuery UI which validates form inputs based on a set of rules. It differs a bit from most other validation plugins as it uses jQuery selectors to target form elements instead of the HTML id or form element name. This allows you to easily validate multiple form elements using the same rules by including them in the selector.

You can find jQValidate on GitHub at http://github.com/JakeWharton/jQValidate. Documentation is essentially non-existent right now (much like all my projects) but you can get a good idea of how the plugin works by looking at test/index.html. In the forthcoming weeks full documentation will be created.

While jQValidate was written from scratch, huge inspiration and convention was obtained from Felix Nagel’s jQuery-Accessible-RIA plugin. jQValidate was born due to unique needs from a validation plugin and an inability to modify jQuery-Accessible-RIA to fit them without a major rewrite. If you enjoy this plugin please also look at jQuery-Accessible-RIA which is also available on GitHub at http://github.com/fnagel/jQuery-Accessible-RIA.

Update: Live demo of the test file which is included in the repository can be found at http://sandbox.jakewharton.com/jqvalidate.html.

Written on: 01-15-10 · No Comments » · Permalink

Leave a Reply