Validation 1.2.0
January 20, 2008 - 6:20pm — Jörn Zaefferer
Download: jquery.validate.zip
Size: 233.06 KB
md5_file hash: 93d5af044df44fe1d83fe5b14d8e75b5
First released: January 20, 2008 - 6:20pm
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
