Skip to content

Instantly share code, notes, and snippets.

@Takerrim
Last active August 1, 2018 18:51
Show Gist options
  • Save Takerrim/1e8bb4edbc86df0924503b53c5079cb2 to your computer and use it in GitHub Desktop.
Save Takerrim/1e8bb4edbc86df0924503b53c5079cb2 to your computer and use it in GitHub Desktop.
Acc jQuery ver.2
$('.wrapper h1').click(function(){
$(this).next("p").slideToggle()
.siblings("p:visible").slideUp();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment