Created
May 17, 2013 14:27
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".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