当前位置: 首页 > 图文教程 > 网络编程 > Javascript > javascript Zifa FormValid 0.1表单验证 代码打包下载

Javascript
Add a Table to a Word Document
Add Formatted Text to a Word Document
用jscript实现新建word文档
用jscript实现新建和保存一个word文档
Open and Print a Word Document
Use Word to Search for Files
Convert Seconds To Hours
Sample script that deletes a SQL Server database
Sample script that displays all of the users in a given SQL Server DB
firefox中用javascript实现鼠标位置的定位
div+css实现鼠标放上去,背景跟图片都会变化。
Locate a File Using a File Open Dialog Box
Save a File Using a File Save Dialog Box
用jscript实现列出安装的软件列表
List the Stored Procedures in a SQL Server database
Display SQL Server Login Mode
Display SQL Server Version Information
List all the Databases on a SQL Server
用jscript启动sqlserver
Stop SQL Server

Javascript 中的 javascript Zifa FormValid 0.1表单验证 代码打包下载


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-12   浏览: 37 ::
收藏到网摘: n/a

简介:完全通过html不需要写js程序就可以实现表单验证功能,可支持一个表单元件多条件验证
和服务端程序无关系,完全客户端方式。
使用方法:在要验证的表单中加上 onsubmit="return validator(this)"
在要验证的表单元件中设置,valid(验证规则),errmsg(提示消息),多个验证使用|全为分隔!
验证规则参数:
复制代码 代码如下:

required 必填
isEmail 必须是Email格式
eqaul 和另一元件对比值是否相同,对比的元件名在元件加上属性eqaulName
gt 和另一元件对比值是否大于另一元件值,对比的元件名在元件加上属性eqaulName
isNumber 是否为数字
isInt 是否为整形
isTime 是否为时间格式
isDate 是否为日期格式
下个版本将增加内容,自定义消息提示方式,自定义回调函数。
本地打包文件下载