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

Javascript
form中限制文本字节数js代码
use jscript with List Proxy Server Information
use jscript List Installed Software
List Installed Software Features
List Information About the Binary Files Used by an Application
List the Codec Files on a Computer
List the UTC Time on a Computer
List Installed Hot Fixes
excel操作之Add Data to a Spreadsheet Cell
Add Formatted Data to a Spreadsheet
Apply an AutoFormat to an Excel Spreadsheet
JavaScript语法着色引擎(demo及打包文件下载)
类之Prototype.js学习
一款JavaScript压缩工具:X2JSCompactor
iis6+javascript Add an Extension File
jscript之Open an Excel Spreadsheet
jscript之Read an Excel Spreadsheet
jscript之List Excel Color Values
去除图像或链接黑眼圈的两种方法总结
Add a Formatted Table to a Word Document

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


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

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

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