toggle text change jquery code example
Example: toggle text jquery
$("button").click(function(){
$(this).text($(this).text() == 'Show' ? 'Close' : 'Show');
});
$("button").click(function(){
$(this).text($(this).text() == 'Show' ? 'Close' : 'Show');
});