jValidate Use jQuery表单验证插件

程序名称:jValidate Use

授权协议: 未知

操作系统: 跨平台

开发语言: JavaScript

jValidate Use 介绍

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

`

// JavaScript
$(’form :invalid’).each(function() {
// $(this) is invalid
}
$(’form input’).each(function() {
if($(this).validate()) {
// $(this) is valid
}
}
$(’form *’).listenValidation();`

jValidate Use 官网

http://plugins.jquery.com/project/jvalidate

相关编程语言

多功能下拉选择插件 SelectPage 简洁而强大的下拉分...
AutoComplete 是一个 jQuery Mobile 的插件,用于实...
Combogrid 是一个jQuery插件用于为输入框添加高级自...
Autobox2这个jQuery插件,可以用于创建类似于Facebo...
Link Scraper TextBox 是一个文本框的扩展插件,当你...
Awesomplete 超小超好用的超漂亮的 autocomplete 框...