script.js

$(document).ready(function() { $('#accordion li.content').filter(':nth-child(n+4)').addClass('hide'); $('ul').on('click','li.title',function() { $(this).next().slideDown(200).siblings('li.content').slideUp(200); }) });
A Pen by Andor Nagy.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.