<section style="width:90%; margin:0 auto; font-size: 16px;"><div class="aui-content-up"><form action="" name="form1" method="post"><div style="text-align:center; margin-top:30px; padding-bottom:20px; margin-bottom:20px; border-bottom: 1px solid red"><h2>表单预约</h2></div><div class="aui-form-group clear"><label class="aui-label-control">姓名 <em>*</em></label><div><input style="width:180px; line-height: 30px; padding-left:5px; margin: 8px 0; font-size:16px;" type="text" class="aui-form-control-two" name="yourname" onBlur="checkna()" required id="1" placeholder="请输入姓名"><span style="margin-left:5px;" id="divname">长度1~6个字符</span></div></div><div class="aui-form-group clear"><label class="aui-label-control">手机号码 <em>*</em></label><div class="aui-form-input"><input style="width:180px; line-height: 30px; padding-left:5px; margin: 8px 0; font-size:16px;" type="text" class="aui-form-control-two" name="youphone" id="2" placeholder="请输入11位的手机号码" onBlur="checkpsd1()" required/><span style="margin-left:5px;" id="phone">必须是11位的数字</span></div></div></div></form></div><div style="width:90%; margin: 10px auto;"><button style="width:100%; line-height:40px; border-radius:10px; height: 40px; background-color: red; font-size:16px; color:#fff; margin:20px 0;">提交</button></div><br /></section><!-- mask end --><script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script><script type="text/javascript">//验证姓名function checkna(){na=form1.yourname.value;if( na.length <1 || na.length >6){divname.innerHTML='<font class="tips_false">长度是1~6个字符</font>';}else{divname.innerHTML='<font class="tips_true">输入正确</font>';}}//验证手机号码function checkpsd1(){na=form1.youphone.value;if( na.length <11 || na.length >11){phone.innerHTML='<font class="tips_false">必须是11位的数字</font>';}else{phone.innerHTML='<font class="tips_true">输入正确</font>';}}//验证社会统一代码function checkpsd2(){na=form1.youziz.value;if( na.length <18 || na.length >18){zizhi.innerHTML='<font class="tips_false">必须是18位社会信用代码</font>';}else{zizhi.innerHTML='<font class="tips_true">输入正确</font>';}}</script>
