Plugins

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.

Releases for Validation


Validation 1.7.0

Validation 1.6.0

Validation 1.5.5

Fix for the remote method.

Validation 1.5.4

1.5.4
---
* Fixed remote method bug (http://plugins.jquery.com/node/8658)

1.5.3
---
* Fixed a bug related to the wrapper-option, where all ancestor-elements that matched the wrapper-option where selected (http://plugins.jquery.com/node/7624)
* Updated multipart demo to use latest jQuery UI accordion
* Added dateNL and time methods to additionalMethods.js
* Added Traditional Chinese (Taiwan, tw) and Kazakhstan (KK) localization
* Moved jQuery.format (fomerly String.format) to jQuery.validator.format, jQuery.format is deprecated and will be removed in 1.6 (see http://code.google.com/p/jquery-utils/issues/detail?id=15 for details)
* Cleaned up messages_pl.js and messages_ptbr.js (still defined messages for max/min/rangeValue, which were removed in 1.4)
* Fixed flawed boolean logic in valid-plugin-method for multiple elements; now all elements need to be valid for a boolean-true result (http://plugins.jquery.com/node/8481)

Validation 1.5.2

  • Fixed messages in additional-methods.js for maxWords, minWords, and rangeWords to include call to $.format
  • Fixed value passed to methods to exclude carriage return (\r), same as jQuery's val() does
  • Added slovak (sk) localization
  • Added demo for intergration with jQuery UI tabs
  • Added selects-grouping example to tabs demo (see second tab, birthdate field)

Validation 1.5.1

  • Updated marketo demo to use invalidHandler option instead of binding invalid-form event
  • Added TinyMCE integration example
  • Added ukrainian (ua) localization
  • Fixed length validation to work with trimmed value (regression from 1.5 where general trimming before validation was removed)
  • Various small fixes for compability with both 1.2.6 and 1.3

Validation 1.5.0

  • Improved basic demo, validating confirm-password field after password changed
  • Fixed basic validation to pass the untrimmed input value as the first parameter to validation methods, changed required accordingly; breaks existing custom method that rely on the trimming
  • Added norwegian (no), italian (it), hungarian (hu) and romanian (ro) localization
  • Fixed #3195: Two flaws in swedish localization
  • Fixed #3503: Extended rules("add") to accept messages propery: use to specify add custom messages to an element via rules("add", { messages: { required: "Required! " } });
  • Fixed #3356: Regression from #2908 when using meta-option
  • Fixed #3370: Added ignoreTitle option, set to skip reading messages from the title attribute, helps to avoid issues with Google Toolbar; default is false for compability
  • Fixed #3516: Trigger invalid-form event even when remote validation is involved

Validation 1.4.0

  • 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

Validation 1.3.0

  • 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

Validation 1.2.1

  • 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

Validation 1.2.0

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/

Validation 1.1.2

* 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

* 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

* 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

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