jQuery tabs selecting specific tab

前端 未结 5 2064
粉色の甜心
粉色の甜心 2021-01-18 03:22

I have a page containing a set of jQuery tabs. All the tabs point at the same target div, but load it with different content via ajax. When I perform the initial full page

5条回答
  •  梦毁少年i
    2021-01-18 04:20

    In case anyone else comes here looking for the answer, the current (as of this date) way to select a tab (jQuery UI 1.10) is to use the "active" option:

    Initialize the tabs with the active option specified:

    $( ".selector" ).tabs({ active: 1 });
    

    http://api.jqueryui.com/tabs/#option-active

提交回复
热议问题