使按钮不可用状态下变灰

前台事件。可以给按钮或者其他控件,让他们的不可用状态下的颜色变灰,可用状态下为#A5A7A9这个颜色

$(".aspNetDisabled").attr("disabled", true);
$(".aspNetDisabled").each(function (index, item) {
$(this).css("text-decoration", "none");
$(this).css("color", "#A5A7A9");
});

原文地址:https://www.cnblogs.com/ouyangxiaoyao/p/5725560.html