Show hide filter

Hi Team,



Is there any way to Show/Hide filters on certain events using javascript?



I am using mygrid.attachHeader("#text_filter,#text_filter") to add filter.



Thanks,



-Agile



But it can be done through DOM as follows:
 
var input1 = grid.hdr.rows[2].cells[0].getElementsByTagName(“INPUT”)[0];
var input2 = grid.hdr.rows[2].cells[1].getElementsByTagName(“INPUT”)[0];

function hide(){
    input1.style.display = “none”;
    input2.style.display = “none”;
}
function show(){

    input1.style.display = “”;

    input2.style.display = “”;

}