Chinaunix首页 | 论坛 | 博客
  • 博客访问: 266629
  • 博文数量: 34
  • 博客积分: 569
  • 博客等级: 中士
  • 技术积分: 380
  • 用 户 组: 普通用户
  • 注册时间: 2012-05-10 14:10
文章分类

全部博文(34)

文章存档

2016年(6)

2014年(1)

2013年(5)

2012年(22)

我的朋友

分类: 系统运维

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.

阅读(1186) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~