标签:on() cti return turn edit 表单 function alert 修改
表单加载完成后执行 :
//表单中包含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;
}
标签:on() cti return turn edit 表单 function alert 修改
原文地址:http://www.cnblogs.com/shz365/p/6145733.html