Accordion
-
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!
-
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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login