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"%> 8182 注册步骤: 1.填写信息 > 2.验证邮箱 > 3.注册成功 8384 152 <%@include file="../common/foot1.jsp"%>153 154