-3

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;.

enter image description here

Carl Binalla
  • 5,393
  • 5
  • 27
  • 46

2 Answers2

0

If I did not misunderstand:

element.style{
    display:none !important;
}
Pang
  • 9,564
  • 146
  • 81
  • 122
ani_css
  • 2,118
  • 3
  • 30
  • 73
0

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().

HSal
  • 35
  • 8