Plugins

User login
Can't find a Plugin?

Can't find a Plugin you are looking for? Check out the jQuery Wiki page.

Are you a plugin developer? Please move your plugin over to this site.

Website Bug or Feature Request?

Found a bug on the new jQuery Plugin website? Have a feature request?

Submit it to the jQuery Plugin website issue queue to ensure it is noticed!

Releases for Validation


Validation 1.4.0

Download: jquery.validate_9.zip
Size: 211.82 KB
md5_file hash: 76bb2886e1fd14a37f8c138f5675dbde
First released: August 8, 2008 - 12:11am
  • Fixed #2931, validate elements in document order and ignore type=image inputs
  • Fixed usage of $ and jQuery variables, now fully comptible with all variations of noConflict usage
  • Implemented #2908, enabling custom messages via metadata ala class="{required:true,messages:{required:'required field'}}", added demo/custom-messages-metadata-demo.html
  • Removed deprecated methods minValue (min), maxValue (max), rangeValue (rangevalue), minLength (minlength), maxLength (maxlength), rangeLength (rangelength)
  • Fixed #2215 regression: Call unhighlight only for current elements, not everything
  • Implemented #2989, enabling image button to cancel validation
  • Fixed issue where IE incorrectly validates against maxlength=0
  • Added czech (cs) localization
  • Reset validator.submitted on validator.resetForm(), enabling a full reset when necessary
  • Fixed #3035, skipping all falsy attributes when reading rules (0, undefined, empty string), removed part of the maxlength workaround (for 0)
  • Added dutch (nl) localization (#3201)

Validation 1.3.0

Download: jquery.validate_3.zip
Size: 234.57 KB
md5_file hash: 5b9c07b0bd58ad3081f2a2cbb892116e
First released: May 12, 2008 - 2:47pm
  • Fixed invalid-form event, now only triggered when form is invalid
  • Added spanish (es), russian (ru), portuguese brazilian (ptbr), turkish (tr), and polish (pl) localization
  • Added removeAttrs plugin to facilate adding and removing multiple attributes
  • Added groups option to display a single message for multiple elements, via groups: { arbitraryGroupName: "fieldName1 fieldName2[, fieldNameN" }
  • Enhanced rules() for adding and removing (static) rules: rules("add", "method1[, methodN]"/{method1:param[, method_n:param]}) and rules("remove"[, "method1[, method_n]")
  • Enhanced rules-option, accepts space-seperated string-list of methods, eg. {birthdate: "required date"}
  • Fixed checkbox group validation with inline rules: As long as the rules are specified on the first element, the group is now properly validated on click
  • Fixed #2473, ignoring all rules with an explicit parameter of boolean-false, eg. required:false is the same as not specifying required at all (it was handled as required:true so far)
  • Fixed #2424, with a modified patch from #2473: Methods returning a dependency-mismatch don't stop other rules from being evaluated anymore; still, success isn't applied for optional fields
  • Fixed url and email validation to not use trimmed values
  • Fixed creditcard validation to accept only digits and dashes ("asdf" is not a valid creditcard number)
  • Allow both button and input elements for cancel buttons (via class="cancel")
  • Fixed #2215: Fixed message display to call unhighlight as part of showing and hiding messages, no more visual side-effects while checking an element and extracted validator.checkForm to validate a form without UI sideeffects
  • Rewrote custom selectors (:blank, :filled, :unchecked) with functions for compability with AIR

Validation 1.2.1

Download: jquery.validate_1.zip
Size: 230.18 KB
md5_file hash: fb720d79406ae38f5935c6d1dd89833e
First released: February 12, 2008 - 11:46pm
  • Bundled delegeate plugin with validate plugin - its always required anyway
  • Improved remote validation to include parts from the ajaxQueue plugin for proper synchronization (no additional plugin necessary)
  • Fixed stopRequest to prevent pendingRequest < 0
  • Added jQuery.validator.autoCreateRanges property, defaults to false, enable to convert min/max to range and minlength/maxlength to rangelength; this basically fixes the issue introduced by automatically creating ranges in 1.2
  • Fixed optional-methods to not highlight anything at all if the field is blank, that is, don't trigger success
  • Allow false/null for highlight/unhighlight options instead of forcing a do-nothing-callback even when nothing needs to be highlighted
  • Fixed validate() call with no elements selected, returning undefined instead of throwing an error
  • Improved demo, replacing metadata with classes/attributes for specifying rules
  • Fixed error when no custom message is used for remote validation
  • Modified email and url validation to require domain label and top label
  • Fixed url and email validation to require TLD (actually to require domain label); 1.2 version (TLD is optional) is moved to additionals as url2 and email2
  • Fixed dynamic-totals demo in IE6/7 and improved templating, using textarea to store multiline template and string interpolation
  • Added login form example with "Email password" link that makes the password field optional
  • Enhanced dynamic-totals demo with an example of a single message for two fields

Validation 1.2.0

Download: jquery.validate.zip
Size: 233.06 KB
md5_file hash: 93d5af044df44fe1d83fe5b14d8e75b5
First released: January 20, 2008 - 6:20pm

Requires jQuery 1.2.2 and delegate plugin (both included in lib folder).

Changelog:

  • Added AJAX-captcha validation example (based on http://psyrens.com/captcha/)
  • Added remember-the-milk-demo (thanks RTM team for the permission!)
  • Added marketo-demo (thanks Glen Lipka!)
  • Added support for ajax-validation, see method "remote"; serverside returns JSON, true for valid elements, false or a String for invalid, String is used as message
  • Added highlight and unhighlight options, by default toggles errorClass on element, allows custom highlighting
  • Added valid() plugin method for easy programmatic checking of forms and fields without the need to use the validator API
  • Added rules() plguin method to read and write rules for an element (currently read only)
  • Replaced regex for email method, thanks to the contribution by Scott Gonzalez, see http://projects.scottsplayground.com/email_address_validation/
  • Restructured event architecture to rely solely on delegation, both improving performance, and ease-of-use for the developer (requires jquery.delegate.js)
  • Moved documentation from inline to http://docs.jquery.com/Plugins/Validation - including interactive examples for all methods
  • Removed validator.refresh(), validation is now completey dynamic
  • Renamed minValue to min, maxValue to max and rangeValue to range, deprecating the previous names (to be removed in 1.3)
  • Renamed minLength to minlength, maxLength to maxlength and rangeLength to rangelength, deprecating the previous names (to be removed in 1.3)
  • Added feature to merge min + max into and range and minlength + maxlength into rangelength
  • Added support for dynamic rule parameters, allowing to specify a function as a parameter eg. for minlength, called when validating the element
  • Allow to specify null or an empty string as a message to display nothing (see marketo demo)
  • Rules overhaul: Now supports combination of rules-option, metadata, classes (new) and attributes (new), see rules() for details

Validation 1.1.2

Download: jquery.validate_8.zip
Size: 83.7 KB
md5_file hash: 9996e5fa957df1c9ab344a8f87570755
First released: December 13, 2007 - 2:06am

* Replaced regex for URL method, thanks to the contribution by Scott Gonzalez, see http://projects.scottsplayground.com/iri/
* Improved email method to better handle unicode characters
* Fixed error container to hide when all elements are valid, not only on form submit
* Fixed String.format to jQuery.format (moving into jQuery namespace)
* Fixed accept method to accept both upper and lowercase extensions
* Fixed validate() plugin method to create only one validator instance for a given form and always return that one instance (avoids binding events multiple times)
* Changed debug-mode console log from "error" to "warn" level

Validation 1.1.1

Download: jquery.validate_7.zip
Size: 96.25 KB
md5_file hash: ea46c75147107fabcafcd2701392ffce
First released: October 18, 2007 - 10:56am

* Fixed invalid XHTML, preventing error label creation in IE since jQuery 1.1.4
* Fixed and improved String.format: Global search & replace, better handling of array arguments
* Fixed cancel-button handling to use validator-object for storing state instead of form element
* Fixed name selectors to handle "complex" names, eg. containing brackets ("list[]")
* Added button and disabled elements to exclude from validation
* Moved element event handlers to refresh to be able to add handlers to new elements
* Fixed email validation to allow long top level domains (eg. ".travel")
* Moved showErrors() from valid() to form()
* Added validator.size(): returns the number of current errors
* Call submitHandler with validator as scope for easier access of it's methods, eg. to find error labels using errorsFor(Element)
* Compatible with jQuery 1.1.x and 1.2.x

Validation 1.1.0

Download: jquery.validate_6.zip
Size: 73.44 KB
md5_file hash: 9841b2bbb354120b97fbd3c01ba51104
First released: June 21, 2007 - 4:04pm
Last updated: June 21, 2007 - 4:04pm

* Added validation on blur, keyup and click (for checkboxes and radiobutton). Replaces event-option.
* fixed resetForm
* fixed custom-methods-demo

Validation 1.0.0-final

Download: jquery.validate_5.zip
Size: 127.05 KB
md5_file hash: 5fbd348bd77039a3fd6fb7430533b8c4
First released: June 14, 2007 - 1:37pm

A lot of improvements and fixes since beta2. See plugin homepage for a detailed list of changes.