标签: bootstrap-4
<form:input type="email" path="email" id="email" cssClass="form-control" /> <script type="text/javascript"> bootstrapValidate('#email', 'required:Please fill out this field!'); </script>
仅在编辑电子邮件字段时才调用必填字段。在提交表单的情况下,不会调用此规则。