jquery表单验证效果

代码语言:html

所属分类:验证

代码描述:jquery表单验证效果

代码标签: 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0, user-scalable=no">
<title>注册表单验证</title>
<style type="text/css">
			.form input {
				width: 40%;
				max-width: 300px;
				line-height: 30px;
				margin: 10px auto;
				padding-left: 20px;
			}
		</style>
</head>
<body>
<!--[if lt IE 9]>
			<div class="lt-ie9-bg">
				<p class="browsehappy">对不起,您正在使用的是 <strong>过时</strong> 的浏览器.</p>
				<p>请升级您的浏览器(IE10,或者是火狐、谷歌、Opera、Safari等现代浏览器),以改进您的用户体验!</p>
			</div>
			<style>
			.lt-ie9-bg{z-index:11111;position:absolute;top:0;left:0;right:0;bottom:0;background-color:#333;color:#999;padding:100px 20px;text-align:center;font-size:26px}
			</style>
		<![endif]-->
<form action="" id="" class="form">
<input type="text" placeholder="用户名1" form-verify="required|userNames" />
<input type="text" placeholder="用户名2" form-verify="required|userName" />
<input type="text" placeholder="英文" form-verify="required|english" />
<input type="text" placeholder="汉字" form-verify="required|chinese" />
<input type="text" placeholder="中文(包括汉字和字符)" form-verify="required|chineseChar" />
<input type="text" placeholder="字符验证只包含中文、英文、数字、下划线等字符" form-verify="required|stringCheck" />
<input type="text" placeholder="邮箱" form-verify="required|email" />
<input type="text" placeholder="QQ" form-verify="required|QQ" />
<input type="text" placeholder="手机号码" form-verify="required|phone" maxlength="11" />
<input type="password" placeholder="密码" form-verify="required|password" />
<input type="password" placeholder="高强度密码" form-verify="required|seniorPassword" />
<input type="text" placeholder="居民身份证" form-verify="required|IDCard" />
<input type="text" placeholder="日期" form-verify="required|date" />
<input type="text" placeholder="时间" form-verify="required|time" />
<input type="text" placeholder="数字" form-verify="required|number" />
<input type="text" placeholder="整数" form-verify="required|integer" />
<input type="text" placeholder="邮政编码" form-verify="required|zipCode" />
<input type="text" placeholder="访问地址URl" form-verify="required|Url" />
<input type="text" placeholder="ipv4地址" form-verify="required|ipV4" />
<input type="text" placeholder="十六进制颜色" form-verify="required|rgbHex" />
<input type="text" placeholder="固话或者传真" form-verify="required|faxe.........完整代码请登录后点击上方下载按钮下载查看

网友评论0