jQuery tabs selecting specific tab

前端 未结 5 2091
粉色の甜心
粉色の甜心 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条回答
  •  独厮守ぢ
    2021-01-18 04:04

    What you're looking for is the selected option. E.g.

    $("#MyTabs").tabs({
      selected: 2 
    });
    

提交回复
热议问题