<input id="serviceNumber" name="cdnOrder.serviceNumber"
placeholder="服务单号" type="text" class="form-control" />
$('#addDialog').bootstrapValidator({
message: '验证未通过!',
feedbackIcons: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-remove',
validating: 'glyphicon glyphicon-refresh'
},
fields: {
cdnOrder.serviceNumber: {
validators: {
notEmpty: {
message: '不能为空!'
}
}
}
}
});
bootstrapValidator不支持类名点属性名的字段验证,怎么解决?