Skip to content

Instantly share code, notes, and snippets.

@chrisjimallen
Last active December 18, 2015 15:28
Show Gist options
  • Save chrisjimallen/5804374 to your computer and use it in GitHub Desktop.
Save chrisjimallen/5804374 to your computer and use it in GitHub Desktop.
Toggle Accordion for Andy-San
$( "p.title" ).click(function() {
if ($(this).parent().hasClass("active")) {
$(this).parent().removeClass("active");
return false; // Prevents further propagation of event
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment