Ah, the index is for the sections -- somehow I thought I'd be able to
specify the *item* and have the accordion find it. Other questions now
arise but lemme try to work through them...  Thanks.

On Dec 16, 4:14 pm, "Richard D. Worth" <rdwo...@gmail.com> wrote:
> Seehttp://docs.jquery.com/UI/Accordion#method-activate
> "
> Signature: .accordion( 'activate' , index )
> 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.
> "
>
> This method currently does not accept a selector, only a numeric index.
> Since you want the 2nd section open, and it's zero-based:
>
> $('#accordion').accordion('activate', 1 );
>
> Alternatively, you could initialize the accordion with this section active:
>
> $("#accordion").accordion({
>   active: 1,
>   collapsible: true
>
> });
>
> It seems this option accepts more types than the method, including
> selectors. Seehttp://docs.jquery.com/UI/Accordion#option-active
>
> - Richard
>

--

You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.


Reply via email to