Skip to content

Instantly share code, notes, and snippets.

@ckahle33
Created April 14, 2014 21:49
Show Gist options
  • Save ckahle33/10685089 to your computer and use it in GitHub Desktop.
Save ckahle33/10685089 to your computer and use it in GitHub Desktop.
var accordiontext = $(".accordion-text")
var accordiontitle = $(".accordion-title")
for ( i=0; i < 3; i++) {
accordiontitle.addClass(i);
}
accordiontitle.on('click', function() {
accordiontext.slideToggle();
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment