how to toggle a string of text 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');
});