Can anyone share the process for coding a simple accordion? Or can anyone point me in the direction of a proper tutorial? I've tried to figure this out a few times and cannot seem to crack it. Thanks in advance for any help!
-
Accordion
-
Dear @mrrpringle
Maybe in the forum already asked that question and got an answer :-)
Here is a pretty good tutorial for an accordeon with jQuery:
https://css-tricks.com/snippets/jquery/simple-jquery-accordion/But in the end this here is the key:
$('.accordeon-child-button').on('click', function () { $(this).parent().toggleClass("accordeon-child-open"); })
Please note this:
http://laytheme.com/documentation.html#custom-javascriptBest!
Marius