<div class="acc-body"> <div class="mod-vcenter"> <h2 class="text-center">注册放心网站</h2> <div class="text-danger"></div> <form id="js-register-form" name="form1" data-parsley-validate="" method="post" action="注册 -登陆-放心网站.html" novalidate=""> <input type="hidden" name="csrfmiddlewaretoken" value="k9NIqh8SNs7sgj6vhldE0W2pR9aL6Oes"><input type="hidden" name="service" value="" onblur="chk()"> <div class="form-group"> <input value="" data-parsley-required="" data-parsley-type="email" type="text" name="email" data-parsley-required-message="请输入帐号 邮箱" placeholder="帐号 邮箱" autocomplete="off" data-parsley-id="6827" onblur="chk()"> <ul class="parsley-errors-list" id="parsley-id-6827"></ul> </div> <div class="form-group"> <input value="" data-parsley-required="" data-parsley-password="" type="password" name="password" data-parsley-required-message="请输入密码" placeholder="密码" autocomplete="off" data-parsley-id="3386" onblur="chk()"> <ul class="parsley-errors-list" id="parsley-id-3386"></ul> </div> <div class="form-group"><input value="" data-parsley-required="" data-parsley-type="number" type="text" name="qq" data-parsley-required-message="请输入QQ号" placeholder="QQ号" data-parsley-id="5716" onblur="chk()"> <ul class="parsley-errors-list" id="parsley-id-5716"></ul> </div> <div class="form-group"><input value="" data-parsley-required="" data-parsley-phone="" type="text" data-parsley-required-message="请输入手机号" name="phone" placeholder="手机号" data-parsley-id="9710" onblur="chk()"> <ul class="parsley-errors-list" id="parsley-id-9710"></ul> </div><div class="form-group"> <input data-parsley-required="" data-parsley-captcha="" type="text" name="captcha" placeholder="验证码" data-parsley-required-message="请输入验证码" data-parsley-id="9531"> <img src="{:U('Index/verify','','')}" class="js-captcha captcha" onclick="refreshCaptcha(this)" title="换一张"> </div> <div class="form-group f12 mod-ft"> <label for="agree" class="fs12"><input data-parsley-required="" data-parsley-required-message="请选择" type="checkbox" name="agree" checked="" data-parsley-multiple="agree" data-parsley-id="9350" onblur="chk()"> 我已阅读并同意<a href="ffxy.html" target="_blank"><strong>《放心网站》</strong></a></label> <ul class="parsley-errors-list" id="parsley-id-multiple-agree"></ul> </div> <div class="form-group"> <button type="button" class="btn" id="js-register-btn">注册</button> <div class="text-right f12 pt5"> <a href="登陆-放心网站.html" class="fs12">点击跳转登录</a> </div> </div> </form> </div> </div> </div><include file="Comm:footer" /> <script>$('#js-register-btn').click(function(){ if(chk()){ window.form1.submit();//如果chk为真提交form1表单 } }); $(document).keydown(function(event){ if(event.keyCode == 13){ if(chk()){ window.form1.submit(); }; } }); function chk(){ var a = 0 ; $('input').each(function(k){ if(this.value == ''){ $('input')[k].focus(); return false; }else{ a++; } }); if(a==6){return 1;} }</script>
添加回答
举报
0/150
提交
取消