下拉框加了data-am-selected后表单验证无效

<form class="am-form " data-am-validator>
                       <div class="am-form-group">
                            <label class="am-u-sm-4 am-form-label">科室</label>
                            <div class="am-u-sm-8">
                                <select id="teacherDepartKey" data-am-selected name="teacherDepartKey" required>
                                    <option value="" selected>请选择科室</option>
                                    <c:if test="${requestScope.schoolDepartList!=null}">
                                        <c:forEach items="${requestScope.schoolDepartList}" var="schoolDepartList">
                                            <option value="${schoolDepartList.pKey}">${schoolDepartList.departName}</option>
                                        </c:forEach>
                                    </c:if>
                                </select>
                            </div>
                        </div>
                          <div class="am-form-group">
                            <div class="am-u-sm-8 am-u-sm-push-2">
                                <button type="submit" class="am-btn am-btn-primary ">保存</button>
                                <button type="button" id="BtnCancel" class="am-btn am-btn-primary ">取消</button>
                            </div>
                        </div>
</form>

 

已邀请:

要回复问题请先登录注册