Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).ready(function($) {
- //Hide all panels
- var allPanels = $('.accordion > dd').hide();
- //Handle click function
- jQuery('.accordion > dt').on('click', function() {
- $( "dd" ).slideToggle( "400" );
- $( "dt" ).toggleClass("accordion-active");
- });
- })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement