我有一个非强制性的“txtPhone”输入过滤器,但只能接受电话号码,所以:
<label class="control-label">Phone</label>
<input type="text" id="txtPhone" class="form-control intonly" maxlength="12" placeholder="Phone" name="Phone">
引导验证
Phone: {
validators: {
regexp: {
regexp: /^((091|\+91)?|\((091|\+91)?\)|(91)?|\(91\)|0)? ?[7-9][0-9]{9}$/,
message: 'The Indian Phone No must contain 10 digits'
},
}
},
但是当我单击文本框中显示的提交按钮时,勾选。