RsD0p9BK
7/22/2013 - 11:58 AM

http://stackoverflow.com/questions/2155453/jquery-toggle-text

$(function() {
  $("#show-background").toggle(function (){
      $("#content-area").animate({opacity: '0'}, 'slow')
      $("#show-background").text("Show Text")
      .stop();
  }, function(){
      $("#content-area").animate({opacity: '1'}, 'slow')
      $("#show-background").text("Show Background")
      .stop();
  });
});