EasyUI常用控件禁用方法



來自:http://blog.csdn.net/jin_guang/article/details/36905387 特此感謝




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裏面的禁用
 <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標籤內的文字

發佈了89 篇原創文章 · 獲贊 42 · 訪問量 86萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章