您的位置:首页 > Web前端 > JQuery

当使用easyui时,jquery的设置disabled属性方法失效

2016-10-28 16:55 711 查看

使用常规的五个去除的方式不可以实现我想要的功能 例如

//两种方法设置disabled属性  

 $('#areaSelect').attr("disabled",true);  

 $('#areaSelect').attr("disabled","disabled");  

 //三种方法移除disabled属性  

 $('#areaSelect').attr("disabled",false);  

 $('#areaSelect').removeAttr("disabled");  

 $('#areaSelect').attr("disabled","");
 

都试过了都不可以,   后来上网找寻资料    发现我的代码
<td><input  class="easyui-combobox" style="width:200px" id="AppointmentPlanFlagSelect" name="AppointmentPlanFlagSelect" panelHeight="auto" disabled>

发现是easyui-combobox   后来 就从网上找到
$('#ID').combobox('enable');
$('#ID').combobox('disable');  

是正确的写法 就用了这个方法
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  jquery