Reputation: 18296
I am using jquery ui accordion plugin. How can I get the active panel in the page ?
Upvotes: 1
Views: 7812
Reputation: 704
I guess the question was more how to get the active panel div, and not just the index. Use this selector:
$("#accordion .ui-accordion-content")[$("#accordion").accordion("option", "active")];
or this one:
$("#accordion .ui-accordion-content-active");
Upvotes: 5