How to Make selected second tab in jQuery Accordian widget

Home Forums Web Development HTML, JavaScript and CSS How to Make selected second tab in jQuery Accordian widget

Tagged: 

This topic contains 0 replies, has 2 voices, and was last updated by  Hirendra Sisodiya 4 years, 7 months ago.

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

    Pavan
    Moderator

    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.