//当查询字段“核对状态”限制为已核对时,将“自动核对”按钮置灰,不可点击
function disableAutoSettlementBtn(a){
if($("#flowStatus").val() == 'CHECKED'){
$("#btn_auto_settlement").attr("disabled", "disabled").unbind();
$("#btn_auto_settlement").removeAttr("onclick");
}else{
$("#btn_auto_settlement").removeAttr("disabled").on("click", function () {
autoSettlement();
});
}
}
转载于:https://www.cnblogs.com/chengshixiaonongming/p/10372857.html