How do I conditionally handle when an accordion section is open. What I am asking is this (in pseudo code):
if (this-accordion-section-open){
do something
}
else {
do something else
}
I am looking for something like :isvisible.
Thanks for your help.
In the demoAccordion div, add 3 div which are going to be panels of the Accordion. Now, using the jQuery accordion() method, create the Accordion and keep the collapsible property as true. Set the active property to false To make the accordion collapse, by default.
The Widget accordion function can be used with widgets in JqueryUI. Accordion is same like as Tabs,When user click headers to expand content that is broken into logical sections.
following code return you the active panel,
var active = $( ".selector" ).accordion( "option", "active" );
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With