<link rel="stylesheet" href="css/bootstrap.min4.css">
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.js"></script>
文件路径:e/日常/2021/job
手机号验证正则:
<div class="col-lg-8 col-sm-12">
<input class="form-control" name="name" id="name" type="text" placeholder="输入手机号" required pattern="^1\d{10}$" title="手机号格式错误">
</div>
验证身份证是否合法
<div class="row form-group">
<label class="control-label col-lg-3 col-sm-12 h34" for="name" >身份证号码:</label>
<div class="col-lg-6 col-sm-12">
<input class="form-control" name="name" id="name" type="text" placeholder="输入身份证号码" required pattern="(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)" title="身份证号码格式错误">
</div>
</div>
网友评论