slide toogle in jquery code example
Example 1: jquery toogle
//Toggle between hide and show for all <p> elements:
$("button").click(function(){
$("p").toggle();
});
Example 2: jquery slidetoggle
$("button").click(function(){
$("p").slideToggle();
});