How to Make selected second tab in jQuery Accordian widget

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4802
    Pavan
    Member

    I have tab control with the 4 tabs. For it I am using the jQuery Ui accrodian control like as:

     $("#accordion").accordion({
                    autoHeight: false,
                    event: "mousedown"
                });

    my problem is that i have to show the second tab by default but it shows first tab. Please help.

    #4805

    There is a option to set the active index of the tabs. Change you accordian method as:

    $("#accordion").accordion({
                    autoHeight: false,
                    event: "mousedown",
                    active: 1
                });
    		

    Remember that the ‘active’ is zero index based option

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.