博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
validate验证
阅读量:5908 次
发布时间:2019-06-19

本文共 2538 字,大约阅读时间需要 8 分钟。

2015-11-24

19:38:28

需要juqery jar包和validate jar包

validate中的方法:

required: "This field is required.",

remote: "Please fix this field.",
email: "Please enter a valid email address.",
url: "Please enter a valid URL.",
date: "Please enter a valid date.",
dateISO: "Please enter a valid date ( ISO ).",
number: "Please enter a valid number.",
digits: "Please enter only digits.",
creditcard: "Please enter a valid credit card number.",
equalTo: "Please enter the same value again.",
maxlength: $.validator.format( "Please enter no more than {0} characters." ),
minlength: $.validator.format( "Please enter at least{0} characters." ),

rangelength: $.validator.format( "Please enter a value between {0} and {1} characters long." ),

range: $.validator.format( "Please enter a value between {0} and {1}." ),
max: $.validator.format( "Please enter a value less than or equal to {0}." ),
min: $.validator.format( "Please enter a value greater than or equal to {0}." )

1 <%@page contentType="text/html;charset=utf-8"%>  2   3   4   5   6 用户注册 - 当当网  7 
8
9 10 11 77 78 79 80 <%@include file="../common/head1.jsp"%> 81
84
85
87

以下均为必填项

88
89
90
91
98
99
100
101
109
110
111
112
119
120
121
122
128
129
130
131
142
143
144 145
150
151
152 <%@include file="../common/foot1.jsp"%>153 154

 

转载于:https://www.cnblogs.com/pi-qingwen/p/4992678.html

你可能感兴趣的文章
Windows ThinPC 最终版已 RTM
查看>>
nmon性能监控
查看>>
SpringMVC懒加载导致的问题一则
查看>>
Tips of ACWS Framework
查看>>
HTTP handlers和Module简介
查看>>
新浪微博开放平台开发-android客户端(1)
查看>>
配置 Project Server 2010 与 Microsoft Exchange Server 2010 结合使用
查看>>
J2EE部署项目至Tomcat报错:Unable to read TLD "META-INF/c.tld"
查看>>
《跟阿铭学Linux》第6章 Linux磁盘管理——课后习题与答案
查看>>
biji001
查看>>
给年轻工程师的十大忠告
查看>>
MDT2008部署之一概览
查看>>
正确删除归档日志
查看>>
Spring 3支持RESTful API/APP配置示例
查看>>
Dell R710服务器磁盘恢复数据库一例(记录)
查看>>
一个专业网管的工作笔记(超级珍藏)
查看>>
SQL Server column not allow Null,insert failed
查看>>
运维老鸟分享-学好Linux技术大绝招
查看>>
一次嵌套循环的优化
查看>>
Zabbix 3.2.6 通过Orabbix监控Oracle数据库
查看>>