【发布时间】:2014-03-28 01:40:49
【问题描述】:
我使用html 5表单验证在提交前验证我的表单,如果有效,提交,但我需要验证我的用户注册表单,所以它需要验证密码确认值是否等于camp密码,下面是我的表单示例:
<form>
<label>Login:</label>
<input type="text" name="login" id="login"/><br/>
<label>Password:</label>
<input type="password" name="pass" id="pass"/><br/>
<label>Password Confirm:</label>
<input type="password" name="pass_conf" id="pass_conf"/><br/>
<input type="submit"/>
</form>
如何为默认验证等工作创建自定义验证?
【问题讨论】:
标签: javascript html forms validation customization