jValidatejQuery表单验证插件
jValidate allows for an easier and cleaner way of validating forms on the client side. It’s key features are that it puts validation rules in semantic HTML (inputs with class email are validates as emails, etc), is passive not aggressive, is easy to access and trigger.
There are several built in validation rules; email, url, number, string, ip, date. As well as general length restrictions with minimum length, max length and in a range. It’s also very simple to add your own validation rules, it’s easiest if you know regular expressions but it’s not a must.
There are several ways to check for validation:
- With a function $('input').validate();
- With selectors $('input:valid');
- With listeners $('input').listenValidation();
Use
<input class=”email” name=”email” type=”text” />
<input type=”text” name=”username” rel=”[5,15]” />
// JavaScript
$(’form :invalid’).each(function() {
// $(this) is invalid
}
$(’form input’).each(function() {
if($(this).validate()) {
// $(this) is valid
}
}
$(’form *’).listenValidation();
评论
Jquery表单验证插件表单验证插件
目前支持对以下格式的值进行验证: cnum*-*(纯数字), char*-*(纯字母), zwen*-*(中文), bysc*-*(字母开头), mail(邮箱), yzbm(邮政编码) *
Jquery表单验证插件表单验证插件
0
EasyValidatorJQuery表单验证插件
最容易上手的表单验证框架,故名EasyValidator。网上有很多流行JQ验证插件,但是用起来总是很麻烦,还要写一大堆的JS配置信息,上手难度大。本插件易上手,易维护,扩展性高,无需用户写任何JS代
EasyValidatorJQuery表单验证插件
0
ValidationjQuery表单验证插件
jquery.validate.js是一款执行表单输入信息验证的jQuery插件。要求jQuery1.2.6+,compatiblewith1.3.x特点:安装简单内置超过20种数据验证方法直列错误提
ValidationjQuery表单验证插件
0
jQuery.validityjQuery表单验证插件
jQuery.validity是一个优雅的、功能强大的jQuery插件,用来实现表单的数据验证,无需服务器端支持。
jQuery.validityjQuery表单验证插件
0
jqValidatejQuery 表单验证插件
jqValidation是一个jQuery的表单验证插件,支持多语言、模板化、提供常用的验证规则例如URL、Email、日期数据,也可以使用正则表达式进行输入验证,使用该插件无需对HTML代码进行修改
jqValidatejQuery 表单验证插件
0