Why are linkbuttons not grayed out when disabled in FireFox?

后端 未结 5 1710
星月不相逢
星月不相逢 2021-02-06 02:39

Why when I set enabled=false on a button does it not render correctly in Firefox? Instead of graying out the link it is still blue.

[UPDATE]

ASP.net already rem

5条回答
  •  遇见更好的自我
    2021-02-06 03:11

    The solution below is for buttons not link but it can be done for link as well.

    var obj = document.getElementById('buttonId'');
    getLabel = function(elem){
    if (elem.id && elem.id=="label") {
    elem.id = "disabledLabel";
    }
    };            
    Dom.getElementsBy(getLabel ,'td', obj);
    

    This will show button as disable or grayed out.

提交回复
热议问题