following code return you the active panel, var active = $( ".selector" ).accordion( "option", "active" );. read more
According to the theming documentation, the active accordion h3 receives a class of ui-state-active and the container receives a class of ui-accordion-content-active, so you can filter your jQuery collection by that class and arrive at the h3 and container that is active. read more