当使用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');
是正确的写法 就用了这个方法
相关文章推荐
- 当使用easyui时,jquery的设置disabled属性方法失效
- 当使用easyui时,jquery的设置disabled属性方法失效
- 使用jQuery的".css()"和".attr()"方法设置元素"left"属性的注意点
- easyui中使用jquery或js动态添加元素时出现的样式失效的解决方法
- Easyui中使用jquery或js动态添加元素时出现的样式失效的解决方法
- JQuery设置和去除disabled属性的5种方法
- 使用jQuery设置disabled属性与移除disabled属性
- Easyui中使用jquery或js动态添加元素时出现的样式失效的解决方法
- Easyui中使用jquery或js动态添加元素时出现的样式失效的解决方法
- jquery设置disabled属性的方法
- 使用jQuery设置disabled属性与移除disabled属性
- js和jquery设置disabled属性为true使按钮失效
- js和jquery设置disabled属性为true使按钮失效
- jquery之操作元素属性和特性(设置特性值,attr(name,value),attr(attributes)方法的使用)
- Jquery设置(移除)disabled属性的方法
- 使用jQuery设置disabled属性与移除disabled属性
- Easyui中使用jquery或js动态添加元素时出现的样式失效的解决方法
- 使用jQuery设置disabled属性与移除disabled属性
- 使用jQuery设置disabled属性与移除disabled属性
- jquery 两种方法设置disabled属性