目前的easyui不支持 extbox 和 combobox 直接的隐藏,需要进行扩展。
代码如下:
$.extend($.fn.textbox.methods, { show: function(jq){ return jq.each(function(){ $(this).next().show(); }) }, hide: function(jq){ return jq.each(function(){ $(this).next().hide(); }) } });
使用举例如下:
$('#t1').textbox('hide'); // hide the textbox $('#c1').combobox('hide'); // hide the combobox $('#t1').textbox('show'); // show the textbox $('#c1').combobox('show'); // show the combobox