博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
validate验证
阅读量:5910 次
发布时间: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

你可能感兴趣的文章
有1000瓶水,3个瓶子可以再换1瓶,一共可以喝多少瓶?
查看>>
hdu1020 Encoding
查看>>
font
查看>>
解决方案:ppt打不开,显示发现文件中的内容有问题。可尝试修复此演示文稿...
查看>>
linux部署二:网卡配置和Yum源的替换
查看>>
hdu_1864
查看>>
Hadoop 之 Hive创建内外部表
查看>>
HDU1005 找规律 or 循环点 or 矩阵快速幂
查看>>
Windows Update 自动更新 设定 被锁(变灰)
查看>>
sphinx 在linux上安装失败
查看>>
UVA-The Largest Clique 11324
查看>>
1.4数据类型(dict)
查看>>
hdfs的javaAPI使用
查看>>
Linux下使用Opencv打开笔记本摄像头
查看>>
循序渐进地代码重构
查看>>
JavaScript基础知识十六(原型链模式-继承)
查看>>
简介HTTP协议及及应用
查看>>
如何减少测试提的bug
查看>>
.html与.text的异同
查看>>
C#异步语法糖的苦与甜
查看>>