I got this to work finally by passing in the ID of the toggle i want
to set active.
On Nov 5, 11:01 am, KCWebMonkey <[EMAIL PROTECTED]> wrote:
> I have an accordion which i am trying to activate on page load, and
> the .activate function doesn't appear to be working. can someone show
> me how i'm implementing it incorrectly?
>
> JavaScript:
>
> $(document).ready(function() {
> $('#childnav').accordion({
> autoheight: false,
> header: '.toggle',
> event: 'click',
> alwaysOpen: true,
> active: false
> });
>
> $(".toggle").activate(0);
> });
>
> HTML:
>
>
>
>
> About Us
>
> Link 1
> Link 2
>
>
>
>
> New Homes
>
> another link
> another link
>
>
>
>
> The Community
>
> Arial PhotoGraph
> Amenities
> Schools
> Utilities
>
>
>
>
> News & Events
>
> Link 1
> Link 2
> Link 1
> Link 2
> Link 1
> Link 2
>
>
>
>
> Contact Us
>
> Link 1
> Link 2
> Link 1
>
>
>