Created
April 14, 2014 21:49
-
-
Save ckahle33/10685089 to your computer and use it in GitHub Desktop.
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
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