Is it possible to expand all components when page is load or when an event occurs? Thanks!!
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Include empty value fields in jQuery .serialize()
- Disable Browser onUnload on certain links?
- how to get selected text from iframe with javascri
I know I'm answering a 2-year-old question, but none of the workarounds or alternate accordion plugins worked for me, so I came up with a devastatingly simple workaround: just destroy the accordion on click of an "expand all" link, and re-initialize it on click of a "collapse all" link. Something like this:
The expand all and collapse all links would look like this:
I know that is realy too late but i found the solution today. Just simply use
link of full article
Simply use this
MultiAccordion jQuery UI plugin worked great for me: https://anasnakawa.wordpress.com/2011/01/25/jquery-ui-multi-open-accordion/
After adding the plugin reference after your jQuery UI reference, you just need to make 2 simple changes:
$("#accordion_div").multiAccordion("option", "active", [0,1]);
No, if you are referring to accordion as your tag states. From jQuery.
http://docs.jquery.com/UI/API/1.8/Accordion
To make it unobtrusive and be hidden only if the visitor has javascript I'd put
CSS:
In
<head>
:Bottom of
<body>
: