使按钮不可用状态下变灰

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

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

posted @ 2016-08-01 13:41  southPalace  阅读(2372)  评论(0编辑  收藏  举报