使用判断输入框内的内容是否符合条件
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
form{
background-color: #F0F8FF;
padding-left: 70px;
}
label{
display: inline-block;
width: 70px;
}
#selectspan{
margin-left: 110px;
}
#reset{
margin-left: 20px;
}
span{
font-size: 12px;
margin-left: 10px;
color: skyblue
}
</style>
</head>
<body>
<form action="" method="">
<h1>个人信息登记表</h1><br>
<label>登录账号:</label><input type="text" id="id" maxlength="18" onblur="checkId()"/><span id="sid">6-18为有效字符(字母/数字/下划线)</span><br><br>
<label>登录密码:</label><input type="password" id="password" maxlength="18" onblur="checkPassword()"/><span id="spassword">6-18位任意字符</span><br><br>
<label>确认密