Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery Accordion expand all div

Is it possible to expand all components when page is load or when an event occurs? Thanks!!

like image 700
user305912 Avatar asked Apr 01 '10 06:04

user305912


People also ask

How do you expand all accordions?

If you want to expand a specified item of Accordion, you need to set the isExpand parameter to true and specify the index of the corresponding accordion pane in index parameter. The index of the HTML 5 Accordion items is starting from 0.

How do you expand a div collapse?

To make an animated collapsible, add max-height: 0 , overflow: hidden and a transition for the max-height property, to the panel class.

How can we make accordion dynamically using jquery?

Your append string needs to be terminated with single quotes since you are using double quotes with it. Also you need to include Jquery library. If you are using the jquery accordion you also need to include the Jquery UI library. Also your html is a bit off, here is a working example.


1 Answers

Simply use this

$('#accordion .ui-accordion-content').show();
like image 66
ivan-ivory Avatar answered Oct 02 '22 09:10

ivan-ivory