How to hide or show textbox and combobox

The current easyui does not support the direct hiding of extbox and combobox, and needs to be extended.

code show as below:

$.extend($.fn.textbox.methods, {
    show: function(jq){
        return jq.each(function(){
            $(this).next().show();
        })
    },
    hide: function(jq){
        return jq.each(function(){
            $(this).next().hide();
        })
    }
});

 Examples of use are as follows:

$('#t1').textbox('hide');  // hide the textbox
$('#c1').combobox('hide');  // hide the combobox

$('#t1').textbox('show');  // show the textbox
$('#c1').combobox('show');  // show the combobox

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326062706&siteId=291194637