animate toggle jquery code example
Example 1: jquery slidetoggle
$("button").click(function(){
$("p").slideToggle();
});
Example 2: jquery toggle show hide
$( "#clickme" ).click(function() {
$( "#book" ).toggle( "slow", function() {
// Animation complete.
});
});