display text and hide with toggle html code example
Example 1: hide show toggle
$(document).ready(function() {
$("#btnshow").click(function() {
$("#imgshow").slideToggle();
});
})
Example 2: how to toggle in text add
$(".email-slide").click(function(){
$("#panel").slideToggle("slow");
$(this)
.text("Close")
.toggleClass("active");
});