【網摘】EasyUI經常使用控件禁用啓用方法

1.validatebox能夠用的用法:前兩種適用於單個的validatebox;ui

  第三種應用於整個form裏面的輸入框;  orm

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

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

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

 <4>.$("input").attr("readonly", "readonly"); //對全部的input標籤禁用date

2.combobox禁用啓用用法:grid

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

 <2>.$("#id").attr("readonly", "readonly");  //對單個禁用   -----  $("#id").removeAttr("readonly");方法

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

 <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標籤內的文字

相關文章
相關標籤/搜索