分类: 系统运维
2012-08-22 16:12:25
转自
List of built-in Validation methods
A set of standard validation methods is provided:
Methods:
Makes the element always required.
Makes the element required, depending on the result of the given expression.
Makes the element required, depending on the result of the given callback.
Requests a resource to check the element for validity.
Makes the element require a given minimum length.
Makes the element require a given maxmimum length.
Makes the element require a given value range.
Makes the element require a given minimum.
Makes the element require a given maximum.
Makes the element require a given value range.
Makes the element require a valid email
Makes the element require a valid url
Makes the element require a date.
Makes the element require a ISO date.
Makes the element require a decimal number.
Makes the element require digits only.
Makes the element require a creditcard number.
Makes the element require a certain file extension.
Requires the element to be the same as another one
Some more methods are provided as addons, currently included in additional-methods.js in the download package.
Validate for valid US phone number.