Skip to content

Commit 8b31789

Browse files
committed
added documentation
1 parent 40afccf commit 8b31789

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,11 @@ that attribute will be displayed instead of the error dialog that the validation
269269
## Changelog
270270

271271
#### 2.0
272-
* [min|max]_length is removed (now merged with length)
272+
* [min|max]_length is removed (now merged with length validation)
273273
* number, int, float is merged together, all three variants is now validated by the number validation
274274
* phone moved to "sweden" module and renamed to swephone
275275
* The attribute to be used when defining the regular expression for custom validations is now moved to its own attribute (data-validation-regexp)
276-
* Length validation now looks at attribute data-validation-length to find out how long or short the value must be
276+
* Length validation now looks at attribute data-validation-length (eg. min5, max200, 3-12)
277277
* The validation rule no longer needs to be prefixed with "validate_" (it's still possible to use the prefix but it's considered deprecated)
278278
* Some validation functions is moved to modules (see function reference in top of this document)
279279
* Added function $.formSetup() to reduce the amount of code that has to be written when initiating the form validation.

0 commit comments

Comments
 (0)