Skip to content

Instantly share code, notes, and snippets.

@nickjs
Forked from benjskim/gist:6999177
Last active December 25, 2015 15:38
Show Gist options
  • Save nickjs/6999202 to your computer and use it in GitHub Desktop.
Save nickjs/6999202 to your computer and use it in GitHub Desktop.
$(function() {
var aboutTextIsExpanded = false;
$(".moreabout").click(function(){
$(".moreabouttext").slideToggle();
if (aboutTextIsExpanded)
$(".moreabout").text("Read Less");
else
$(".moreabout").text("Read More");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment