Skip to content

Instantly share code, notes, and snippets.

@jhammann
Created May 17, 2013 14:27
Show Gist options
  • Save jhammann/5599385 to your computer and use it in GitHub Desktop.
Save jhammann/5599385 to your computer and use it in GitHub Desktop.
A simple click function that toggles a hidden text and changes the text of the link you'll have to click.
$(".showMoreIntroText").click(function(){
$(".hiddenIntroText").slideToggle();
$(this).text($(this).text() == "Read more..." ? "Read less..." : "Read more...");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment