Activating accordion panel with selector

Activating accordion panel with selector


Hi!
In the jQuery UI documentation http://jqueryui.com/demos/accordion/#method-activate
it says:
Activate a content part of the Accordion programmatically. The index
can be a zero-indexed number to match the position of the header to
close or a Selector matching an element. Pass false...
I wanted to use an selector instead of an index number, but what will
I have to select? I tried to select an element in the header of the
panel I want to open, but only got an error. Can anyone supply an
example of activating an accordion with a selector?
Thanks an regards
marcus