嗨,我正在使用 bootstrapValidator。电子邮件验证计数 this emial@email
valid 而不是emial@email.com
.
<div class="col-sm-4 form-group">
<div class="error-icon">
<label class="control-label">Email</label>
<input class="form-control" id="person_email" name="person_email" placeholder="eg: youremail@gmail.com" type="email">
</div>
</div>
脚本
$('#basicBootstrapForm').bootstrapValidator({
feedbackIcons: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-remove',
validating: 'glyphicon glyphicon-refresh'
},
fields: {
person_email: {
validators: {
notEmpty: {
message: 'The email address is required'
},
person_email: {
message: 'The input is not a valid email address'
}
}
},
}
});
任何帮助,将不胜感激。