Created
January 13, 2015 07:28
-
-
Save kossoff/cef1657cdf823f9e1507 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
/* | |
Zurb Foundation Accordion: | |
<dl class="accordion" data-accordion> | |
<dd class="accordion-navigation"> | |
<a href="#panel1b"><i class="fi-plus"> Accordion 1</a> | |
<div id="panel1b" class="content"> | |
Panel 1. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. | |
</div> | |
</dd> | |
</dl> | |
*/ | |
$(document).ready(function(){ | |
$(".accordion a").on('click',function(){ | |
$(this).children('.fi-minus, .fi-plus').toggleClass("fi-minus fi-plus"); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment