I am using jQuery accordion plugin for my application. Is there a way to open sections at the same time(after page has loaded) so that contents of all pages are shown at the sam
jQuery makes it very easy to make your own accordion without a plugin. For example, this HTML:
Section One
..... content here ......
and this jQuery:
$('.accordion_toggler').click(function() {
$(this).next('.accordion_content').slideToggle();
});
Any time you click on an accordion_toggler
, the following accordion_content
will toggle (slide up or down in this case). To start with all the content hidden but allow multiple to be open at the same time, use this CSS:
.accordion_content { display: none }