Try alwaysOpen:false and active: false:

jQuery().ready(function(){
       // simple accordion
       jQuery('#accordion').accordion({
               alwaysOpen: false,
               active: false
       });
});

Jörn

On Mon, Feb 16, 2009 at 7:46 AM, Jen <[email protected]> wrote:
>
> Hi guys,
>
> I am having real problems trying to make the accordion menu closed
> initially. The code Im using is:
>
> jQuery().ready(function(){
>        // simple accordion
>        jQuery('#accordion').accordion({
>                autoheight: false,
>        });
>
>
> $('#accordion').activate();
>
> But it still leaves the top one expanded. Can anyone help? It would be
> much appreciated!!
>
>
> >
>

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

Reply via email to