nicevalidator验证
官网:validator.niceue.com
单字段验证,显示提示信息(返回结果):
$("#id").isValid();
多字段验证,显示提示信息(返回结果):
$("#id1,#id2,#id3").isValid();
内置规则:
required 造用于input、textarea、select
checked 造用于checkbox、radio
match 两个字段匹配和比较
remote 远程验证
integer 整数
range 数值范围
length 字符长度
filter 过滤字符
validate 执行验证另一个字符
单字段验证,显示提示信息(返回结果):
$("#id").isValid();
多字段验证,显示提示信息(返回结果):
$("#id1,#id2,#id3").isValid();
内置规则:
required 造用于input、textarea、select
checked 造用于checkbox、radio
match 两个字段匹配和比较
remote 远程验证
integer 整数
range 数值范围
length 字符长度
filter 过滤字符
validate 执行验证另一个字符

浙公网安备 33010602011771号