頁面上控制 <!-- ajax異步驗證 --> <c:choose> <c:when test="${!empty OpenUpdateFlag && (OpenUpdateFlag eq '1' )}"> <div class="left">確認卡號</div> <div class="right"> <input id="AccountNo2" name="AccountNo2" type="text" class="hbitext y_width180 " value="${BankInfo.AccountNo}" maxlength="22"/> </div> </c:when> <c:otherwise> <div class="left">確認卡號</div> <div class="right"> <input id="AccountNo2" name="AccountNo2" type="text" class="hbitext y_width180 " value=" " maxlength="22"/> </div> </c:otherwise> </c:choose>
2.JS表單驗證修改ajax
去除對確認卡號的AJAX異步驗證異步