When open my file setup panel is open. It's showing style="display:block"
. When I change it to display:none;
, it closes the setup panel.
Please tell me how to replace display:block
to display:none;
.
When open my file setup panel is open. It's showing style="display:block"
. When I change it to display:none;
, it closes the setup panel.
Please tell me how to replace display:block
to display:none;
.
If I did not misunderstand:
element.style{
display:none !important;
}
If you want to change its display on click of something (say a button with id 'btn'), you the following code:
$('#btn').on('click',function(){
if($('.child_menu').css('display') == 'none'){
$('.child_menu').show();
} else {
$('.child_menu').hide();
}
});
Alternatively, you can use:
$('.child_menu').css("display", "none");
$('.child_menu').css("display", "block");
instead of show() and hide().