怎么用js代码完整注册表单验证及邮箱补齐
更新:HHH   时间:2023-1-7


这篇文章主要讲解了“怎么用js代码完整注册表单验证及邮箱补齐”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“怎么用js代码完整注册表单验证及邮箱补齐”吧!

代码如下:

<!DOCTYPE html>

<html lang="zh-CN">

<head>

  <meta charset="utf-8">

  <meta http-equiv="X-UA-Compatible" content="IE=edge">

  <meta name="viewport" content="width=device-width, initial-scale=1">

  <title>完整注册表单验证及邮箱补齐js特效代码</title>

  <meta name="keywords" content="完整,注册表单,表单验证,邮箱补齐,js特效,特效代码" />

  <meta name="description" content="完整注册表单验证及邮箱补齐js特效代码,非常实用,可以直接应用到网站注册项目。" />

  <link href="css/bootstrap.min.css" rel="stylesheet">

  <link href="css/normalize.css" rel="stylesheet">

  <link href="css/public.css" rel="stylesheet">

  <link href="css/validator.css" rel="stylesheet">

  <link href="css/completer.css" rel="stylesheet">

  <link href="jedate/skin/jedate.css" rel="stylesheet">

  <link href="css/date.css" type="text/css" rel="stylesheet">

  <link href="css/magic-check.css" rel="stylesheet" >

  <link href="css/jquery-ui.css" rel="stylesheet"> 

  <link href="css/index.css" rel="stylesheet"> 

  <script src="js/jquery.min.js"></script>

  <script src="js/bootstrap.min.js"></script>

  <script type="text/javascript" src="js/public.js"></script>

  <script type="text/javascript" src="jedate/jedate.js"></script>

  <script type="text/javascript" src="js/date.js"></script>

  <script type="text/javascript" src="js/jquery-validate.js"></script>

  <script type="text/javascript" src="js/validator.js"></script>

  <script type="text/javascript" src="js/jquery-ui.min.js"></script>

  <script type="text/javascript" src="js/index.js"></script>

 

  <!--[if lt IE 9]>

    <script src="http://cdn.static.runoob.com/libs/html5shiv/3.7/html5shiv.min.js"></script>

    <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script> 

  <![endif]-->

</head>

<body>

<header>

</header>

<div class="container">

  <div class="form-box row">

    <form action="" class="form-horizontal" role="form" id="register-form">

      <div class="form-group">

        <label for="username" class="col-sm-2  control-label"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :</label>

        <div class="col-sm-10  input-parent">

          <input type="text" class="form-control vinput" id="username" name="username" placeholder="请输入帐户" >

          <span></span>

        </div>

      </div>

      <div class="form-group">

        <label for="phone" class="col-sm-2  control-label"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :</label>

        <div class="col-sm-10  input-parent">

          <input type="text" class="form-control vinput" id="phone" name="telephone" placeholder="请输入手机号">   

          <span></span>

        </div>

      </div>

      <div class="form-group ">

        <label for="email" class="col-sm-2  control-label"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :</label>

        <div class="col-sm-10 input-parent">

          <input type="text" class="form-control vinput" id="email" name="email" placeholder="请输入邮箱"/>      

          <span></span>

        </div>

      </div>

      <div class="form-group">

        <label for="birthday" class="col-sm-2  control-label"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :</label>

        <div class="col-sm-10  input-parent">

          <input type="text" class="form-control vinput" id="birthday" name="birthday" placeholder="请选择生日" readonly>

          <span></span>

        </div>

      </div>

      <div class="form-group ">

        <label for="password" class="col-sm-2  control-label"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :</label>

        <div class="col-sm-10  input-parent">

          <input type="password" class="form-control vinput" id="password" name="password" placeholder="请输入密码"/>

          <i class="glyphicon glyphicon-eye-close form-control-feedback" id="toogle-password"></i>

          <span></span>

        </div>

      </div>

      <div class="form-group">

        <label for="notpass" class="col-sm-2  control-label">确认密码 :</label>

        <div class="col-sm-10  input-parent">

          <input type="text" class="form-control vinput" id="notpass" name="notpass" placeholder="请再次输入密码"/>

          <i class="glyphicon glyphicon-eye-close form-control-feedback" id="toggle-notpass"></i>

          <span></span>

        </div>

      </div>

      <br>

      <div class="form-group">

        <div class="col-sm-12">

          <input type="checkbox" class="magic-checkbox" id="accept" name="accept" />

          <label for="accept" class="accept"><span>我已阅读并接受</span> <a href="javascript:;">《版权声明》</a> <span></span> <a href="javascript:;">《隐私保护》</a></label>

        </div>

      </div>

      <div class="form-group">

        <div class="col-sm-12">

          <input type="submit" class="btn btn-primary form-control" id="submit" value="注册"/>

        </div>

      </div>

    </form>

  </div>

</div>

 

<footer>

</footer>

</body>

</html>

感谢各位的阅读,以上就是“怎么用js代码完整注册表单验证及邮箱补齐”的内容了,经过本文的学习后,相信大家对怎么用js代码完整注册表单验证及邮箱补齐这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是天达云,小编将为大家推送更多相关知识点的文章,欢迎关注!

返回web开发教程...