Created
October 15, 2013 21:46
-
-
Save benjskim/6999177 to your computer and use it in GitHub Desktop.
When I click on ".moreabout" the text successfully changes to "Read Less" but not vice-versa
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
$(".moreabout").click(function(){ | |
$(".moreabouttext").slideToggle(); | |
if ($(".moreabout").css("display") == "none") { | |
$(".moreabout").text("Read More"); | |
} | |
else { | |
$(".moreabout").text("Read Less"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment