Skip to content

Instantly share code, notes, and snippets.

@kossoff
Created January 13, 2015 07:28
Show Gist options
  • Save kossoff/cef1657cdf823f9e1507 to your computer and use it in GitHub Desktop.
Save kossoff/cef1657cdf823f9e1507 to your computer and use it in GitHub Desktop.
/*
Zurb Foundation Accordion:
<dl class="accordion" data-accordion>
<dd class="accordion-navigation">
<a href="#panel1b"><i class="fi-plus">&nbsp;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