How to Auto Open Accordion Particular div by Using Jquary?


#1

That is my demo page. I want to auto open by slide down “.accordion-content-parent” class after loading page. Please help me anyone

I am using such kind of jquary

$(function($) { var allAccordions = $(’.accordion .accordion-content, .accordion-content-parent’); var allAccordionItems = $(’.accordion .accordion-item’); $(’.accordion > .accordion-item’).click(function() { if($(this).hasClass(‘open’)) { $(this).removeClass(‘open’); $(this).next().slideUp(“slow”); } else { allAccordions.slideUp(“slow”); allAccordionItems.removeClass(‘open’); $(this).addClass(‘open’); $(this).next().slideDown(“slow”); return false; } }); });