disabled attribute does not work in firefox - for a div

后端 未结 3 1085
梦谈多话
梦谈多话 2021-01-22 16:17

hi my dear friends :
the below code works perfect in ie9 , but does not work in firefox 3.6

$(\'#ctl00_ContentPlaceHolder1_RadUploadImage\').attr(\'disable         


        
3条回答
  •  深忆病人
    2021-01-22 16:44

    You don't have to use JQ for that , just use pure JS like that :

    document.getElementById('x').disabled = true;
    

    or if you wanna UNdisable it :

    document.getElementById('x').disabled = false;
    

提交回复
热议问题