The jQuery Validation Plugin can help webmasters prevent erroneous form submissions by checking the data on the client side before sending it to the server.
The plugin provides developers with a preset list of checks which they can apply on their forms before taking the data and sending it to a desired remote server location for further processing.
These checks and validation procedures can be filtered and only the ones that fit the form's field types can be used.
The plugin's core also features an extensible codebase which can easily be improved with new checks and procedures.
If errors are detected they are shown inline with the respective form field, without pesky alert windows.
The jQuery Validation Plugin comes with a lots of examples to show developers how it can be used.
What is new in this release:
- Add plugin UMD wrapper
- Respect non-error aria-describedby and empty hidden errors
- Improve dateISO RegExp
- Added radio/checkbox to delegate click-event
- Use aria-describedby for non-label elements
- Register focusin, focusout and keyup also on radio/checkbox
- Fix normalization for rangelength attribute value
- Update elementValue method to deal with type="number" fields
What is new in version 1.13.1:
- Add plugin UMD wrapper
- Respect non-error aria-describedby and empty hidden errors
- Improve dateISO RegExp
- Added radio/checkbox to delegate click-event
- Use aria-describedby for non-label elements
- Register focusin, focusout and keyup also on radio/checkbox
- Fix normalization for rangelength attribute value
- Update elementValue method to deal with type="number" fields
What is new in version 1.12.0:
- Added ARIA testing.
- Added es-AR localization messages.
- Added missing dots to 'es' and 'es_AR' messages.
- Added Indonesian (ID) localization.
- Added NIF, NIE and CIF Spanish documents numbers validation.
- Added the current form to the context of the remote Ajax request.
- Updated IBAN method, trim trailing whitespaces.
- Improved RegEx, {1} is always redundant.
- Added Bower.json for package registration.
What is new in version 1.10.0:
- Disables blur event when onfocusout is set to false. Test added.
- Fixed value issue for radio buttons and checkboxes.
- Added test for rangeWords and fixed regex and bounds in method.
- Fixed TinyMCE Demo and added link on demo page.
- Changed localization message for min/max.
- Added pseudo selector for text input types to fix issue with default empty type attribute. Added tests and some test markup.
- Fixed delegate bug for dynamic-totals demo.
- Fixed incorrect message for alphanumeric validator.
- Removed incorrect false check on required attribute.
- Required attribute fix for non-html5 browsers.
- Added methods "require_from_group" and "skip_or_fill_minimum".
- Use correct iso code for Swedish.
- Updated demo HTML files to use HTML5 doctype.
- Fixed regex issue for decimals without leading zeroes. Added new methods test.
- Introduced a elementValue method that normalizes only string values (don't touch array value of multi-select).
- Support for dynamically added submit buttons, and updated test case. Uses validateDelegate.
- Fixed bad double quote in test fixtures.
- Fixed maxWords method to include the upper bound, not exclude it.
- Fixed grammar error in german range validator message.
- Fixed handling of multiple class names for errorClass option.
- Fixed jQuery.format usage, should be $.validator.format.
- Methods for 'all' UK phone numbers + UK postcodes.
- Pattern method: Convert string param to RegExp.
- Grammar error in German localization file.
- Added Estonian localization for messages.
- Improved tooltip handling on themerollered demo.
- Added type="text" to input fields without type attribute to please qSA.
- Updated themerollered demo to use tooltip to show errors as overlay.
- Updated themerollered demo to use latest jQuery UI (along with newer jQuery version). Move code around to speed up page load.
- Fixed min error message broken in Japanese.
- Update form plugin to latest version. Enhance the ajaxSubmit demo.
- Drop dateDE and numberDE methods from classRuleSettings, leftover from moving those to localized methods
- Passing submit event to submitHandler callback
- Fixed valid() on elements with dependency-callback or dependency-expression.
- Improved build to remove dist dir to ensure only the current release gets zipped up.
What is new in version 1.9.0:
- Added Basque (EU) localization
- Added Slovenian (SL) localization
- Fixed - Finnish translations has one : instead of ;
- Fixed Russian localization, minor syntax issue
- Added in support for HTML5 input types
- Improved HTML5 support by setting novalidate attribute on the form, and reading the type attribute.
- Fixed showLabel() removing all classes from error element. Remove only settings.validClass.
- Added 'pattern' to additional-methods to validate against arbitraty regular expressions.
- Improved email method to not allow the dot at the end (valid by RFC, but unwanted here).
- Fixed Swedish and Norwedian translations, min/max messages got switched.
- Fixed - resetForm: should unset lastElement
- Fixed - improve existing time method and add time12h method for 12h am/pm time format
- Fixed - Fix validation of a single radio or checkbox input
- Fixed - :hidden elements are now ignored by default
- Fixed - Required as attribute fails if jQuery>=1.6 - Use .prop instead of .attr
- Fixed - Allowed credit card numbers to contain spaces as well as dashes (spaces are commonly input by users).
What is new in version 1.7:
- Added Lithuanian (LT) localization
- Added Greek (EL) localization
- Added Latvian (LV) localization
- Added Hebrew (HE) localization
- Fixed Spanish (ES) localization
- Added jQuery UI themerolled demo
- Removed cmxform.js
- Fixed four missing semicolons
- Renamed phone-method in additional-methods.js to phoneUS
- Added phoneUK and mobileUK methods to additional-methods.js
- Deep extend options to avoid modifying multiple forms when using the rules-method on a single element
- Bugfixes for compability with jQuery 1.4.2, while maintaining backwards-compability
Requirements:
- JavaScript enabled on client side
- jQuery 1.4.4 or higher
Komentáře nebyl nalezen