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
following code return you the active panel,
var active = $( ".selector" ).accordion( "option", "active" );