添加属性:   $('#areaSelect').attr("disabled",false);  

移除属性:  $('#areaSelect').removeAttr("disabled");  

 

转载 :http://www.tuicool.com/articles/Qji2yaa

EasyUI常用控件禁用方法:

1.validatebox可以用的用法:前两种适用于单个的validatebox;

  第三种应用于整个form里面的输入框;  

 <1>.$("#id").attr("readonly", true); -----  $("#id").removeAttr("readonly");

 <2>.$("#id").attr("readonly", "readonly"); -----  $("#id").removeAttr("readonly");

 <3>.$("#Form :input").attr("readonly", "readonly"); //对form里面的禁用

        $("#Form :input").removeAttr("disabled"); //对form里面的启用

 <4>.$("input").attr("readonly", "readonly"); //对所有的input标签禁用

2.combobox禁用启用用法:

 <1>.$("#id").combobox({ disabled: true }); -----  $("#id").combobox({ disabled: false});

 <2>.$("#id").attr("readonly", "readonly");  //对单个禁用   -----  $("#id").removeAttr("readonly");

 <3>.$("#fm .easyui-combobox").combobox({ disabled: true });  //对form里面的下拉框禁用

 <4>.$("#ID").combobox("disable"); ------ $("#ID").combobox("enable");

3.datebox与datetimebox禁用启用方法:

 <1>.$("#fm .easyui-datebox").datebox({ disabled: true }); -----  $("#fm .easyui-datebox").datebox({ disabled: false});

 <2>.$("#id").attr("readonly", "readonly");  -----  $("#id").removeAttr("readonly");

 <3>.$("#fm .easyui-datetimebox").datetimebox({ disabled: true }); ----- $("#fm .easyui-datetimebox").datetimebox({ disabled: true });

 

4.combogrid禁用启用方法:

 <1>.$("#FPayApplySupAccountID").combogrid("disable"); ----- $("#FPayApplySupAccountID").combogrid("enable");

5.lable标签ID附加文字:

 <1>.$("#id").text("标题:"); //此方法可以屏蔽掉lable标签内的文字

相关文章:

  • 2021-09-21
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2022-01-07
  • 2022-12-23
猜你喜欢
  • 2021-06-18
  • 2022-12-23
  • 2022-12-23
  • 2022-02-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案