Selecting an active item in an accordian list

Selecting an active item in an accordian list

Hi All,
Very new to Jquery and was hoping i can get some help.

I have an accordian list much like the example here :
http://docs.jquery.com/UI/Accordion#option-active

Say for instance i have page links under the heading 'Section 2' of that demo.
How can i make it so that when you visit a page from these links 'Section 2' is now active (by that i mean expanded, instead of the first item as default)

I am looking at this information provided on the same page , but it's not really making sense to me.
Can someone explain what i need to do ?
Thanks


Selector for the active element.
Set to false to display none at start. Needs collapsible: true.

Code examples

Initialize a accordion with the active option specified.
$('.selector').accordion({ active: 2 });

Get or set the active option, after init.

//getter
var active = $('.selector').accordion('option', 'active');
//setter
$('.selector').accordion('option', 'active', 2);