If you want to show and hide the panel on the same button, then you need toggle the panel.
Code will be like below.
HTML
<div id='panel'>[Put your content here]</div>
<input type="button" id='click' value="show/hide" />
CSS
#panel
{
height: 200px;
width: 200px;
background: #E88C37;
float: left;
display: none;
font-size: xx-large;
}
Javascript
$('#click').click(function()
{
$("#panel").toggle();
});
Have a look at the
Live Demo[
^].
Thanks...