toggle between show and hide jquery code example
Example 1: jquery toggle show hide
$( "#clickme" ).click(function() {
$( "#book" ).toggle( "slow", function() {
// Animation complete.
});
});
Example 2: hide show toggle
$(document).ready(function() {
$("#btnshow").click(function() {
$("#imgshow").slideToggle();
});
})