我的注册没有字段,如下所示
<div class="section colm colm6">
<label for="enrollno" class="field-label">Enrollment Number</label>
<label for="enrollno" class="field prepend-icon">
<input type="number" name="enrollno" id="enrollno" class="gui-input" placeholder="Your Enrollment Number...">
<b class="tooltip tip-left"><em> Enter Your Enrollment Number Here</em></b>
<label class="field-icon"><i class="fa fa-calendar"></i></label>
</label>
</div>
我应用验证规则如下
rules: {
enrollno: {
required: true,
minlength: 13,
maxlength: 13
},
},
messages:{
enrollno: {
required: 'Enter your enrollment number',
minlength: 'Enrollment no must be 13 characters',
maxlength: 'Enrollment no is only upto 13 characters',
},
},
现在我想再添加一条规则。即,注册号码应符合以下规则:
请指导我这样做