jQuery Walidate

The jQuery Form-Validation-Plugin where the Form-HTML-Markup doesn't matter!
by Michael Fischer

10.8kBDownload jQuery Walidate
(compressed + minified)
41kBDownload source
(development version)
 Try it on jsFiddle.net!
(examples)

News

28. May 2013 jQuery Walidate 2.4.4 now compatible to jQuery 1.8+
30. May 2013 This project is now on github :)

Features

The basics

This plugin adds and removes CSS-classes to mark each element as required, valid, invalid and every element that has to be validated.
The default classes used are:
.validate for each element that has to be validated
.required for required elements
.valid for valid user-inputs/-elements or selections
.error for invalid user-inputs/-elements or selections
.compare-x for elements with an additional verify-field

  1. Initialize the form:
    $('form').walidate();
  2. or initialize the form and change the default plugin properties:
    $('form').walidate({
        // your properties
    }callback);
  3. Set an element as a required input:
    $(selector).walidate('validate');
  4. or add properties to this element:
    $(selector).walidate('validate', {
        // additional properties
    }callback);

Documentation - Reference

Live demo

View on jsFiddle

6 Donate

I would appreciate a beer from you!

License

This plugin is distributed under the MIT and GPL licenses.
You're allowed to use this plugin in any commercial and non-commercial project.

Contact

dotwin[a.t.]gmx[d.o.t.]net