New features
Allow to use multiple instance of validators via new alias option.
You can registry a new validator which is actually a built-in validator as following:
or use multiple instance of same validators (for example, callback, as following piece of code):
Changes
- #235: Change the file name and definition of some language packages:
Old | New |
---|---|
be_FR | fr_BE |
be_NL | nl_BE |
gr_EL | el_GR |
Improvements
- #151: integer validator accepts leading zeros
- #163: between, greaterThan, lessThan validators now show the message where
%s
are replaced with themin
,max
,value
options when the input isn't a number - #165: integer and numeric validators support more locales by providing new thousands and decimal separator options
- #233: When using tooltip for multiple fields, it always shows on the last field
- #234: Adjust the default messages when using the stringLength validator
- The Spanish id, vat
validators add
type
to the return value. The type can beDNI
,NIE
orCIF
.
Bug fixes
- #102, #166: Fix an issue on IE 10/11 that causes an input element with placeholder attribute to be validated automatically when it's focused
- #177: Fix the bug that the isValidContainer() method doesn't ignore field which validators are totally disabled
- #217: The field's enabled option doesn't work in declarative mode
- #231: Fix the bug causing the message option for form isn't used. The plugin uses default message provided by each validator instead
Document
- #6, #13, #106: Add Showing custom message returned from server example
- #20: Add Validating percentage values example
- #76: Update the Bootstrap Multiselect
example that supports the
enableFiltering
option - #99: Add Disabling date example
- #144, #153: Update the Bootstrap modal example that the resetForm() method doesn't work
- #154: Update the Can't submit form after validation example
- #159: Update the Form is submitted twice example
- #181: Add a country box to the VAT validator example
- #190: Add Adding custom class to field container while it is being validated section
- #196: Update the summernote example to work with the latest version of summernote
- #213: Add Using other plugin for added fields section
- #218: Add Using jQuery Form plugin section
- #219: Add Asking fields to be unique example
- #237: Add useful patterns including SSN which can be used with the regexp validator
- #240: When using selector option, don't use some HTML 5 attributes causing validators to be enabled automatically
- Add Contact form example
- Add Showing Google reCaptcha message in a custom area section
- Add Validating custom Stripe form example
- Add Validating form generated by JotForm example
- Add Terms and conditions agreement validation example
- Update the framework and live option usages
- Update the recaptcha2 usage: User don't need to insert the reCaptcha API script to page