Appendix N. Accordion
Method | Description | Return Value |
---|---|---|
Showing and Hiding Methods | ||
| Makes the selected elements into accordions (see "Accordion Options"). | jQuery |
| Activates a content part of the accordion programmatically. | jQuery |
| Enables the selected accordion. | jQuery |
| Disables the selected accordion. | jQuery |
| Destroys the selected accordion. | jQuery |
Accordion Options
Option | Description | Type |
---|---|---|
| Used to set the default content pane. If a selector is provided, it must reference the element used for a header. If the value | Boolean, selector, element, number, jQuery |
| By default, there is always one content pane open, and the open content pane cannot be closed. If this open is set to | Boolean |
| If set to | Boolean, |
| If set to | Boolean |
| If set, clears height and overflow styles after finishing an animation, which enables accordions to work with dynamic content. Won't work with the ... |
Get Beginning JavaScript® and CSS Development with jQuery now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.