Html
    Css
    Js

    
                        
* {
	margin:0;
	padding:0;
}
body {
	font-size:12px;
	padding:50px;
}
.one {
	margin:10px;
}
.one label {
	width:100px;
	float:left;
	text-align:right;
	height:20px;
	line-height:20px;
}
.one input {
	border:1px solid #999;
	height:20px;
}
.two {
	padding-left:110px;
}
.red {
	color:black;
}
.error {
	width:100px;
	height:20px;
	padding:2px;
	line-height:20px;
	background:url(img/err.png)no-repeat;
	padding-left:25px;
	margin-left:5px;
}
.right {
	width:100px;
	height:20px;
	padding:2px;
	line-height:20px;
	background:url(img/ok.png)no-repeat;
	padding-left:25px;
	margin-left:5px;
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

jQuery表单验证(不连接数据库)

0