how to change the text in button after clicking and again to previous using java script code example
Example: how to toggle in text add
$(".email-slide").click(function(){
$("#panel").slideToggle("slow");
$(this)
.text("Close")
.toggleClass("active");
});