表单加载完成后执行 :  

   //表单中包含input(text,checkbox,hidden),select,radio,

    $("#editWithdrawAutoApprovedConfig :input,#editWithdrawAutoApprovedConfig :checkbox,#editWithdrawAutoApprovedConfig :radio,#editWithdrawAutoApprovedConfig select").change(function() {
             $("#editWithdrawAutoApprovedConfig").data("changed",true);
        });

提交表单时执行:

if (!$("#editWithdrawAutoApprovedConfig").data("changed")) {
            alert("表单未做任何修改!");
            return false;
        }

相关文章:

  • 2022-12-23
  • 2021-07-09
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-24
  • 2022-12-23
猜你喜欢
  • 2022-03-03
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-23
相关资源
相似解决方案