jquery-validation v1.2.1 Release Notes

    • ๐Ÿ”Œ Bundled delegate 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 additions 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

    1.2

    • โž• 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() plugin 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 completely 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

    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