How to set a default tab with Jquery UI

后端 未结 3 1345
时光取名叫无心
时光取名叫无心 2021-02-13 17:42

I\'m using Jquery and Jquery UI with the following:

$(document).ready(function() {
    $(\'#tabvanilla > ul\').tabs({ fx: { height: \'toggle\', opacity: \'tog         


        
3条回答
  •  既然无缘
    2021-02-13 18:18

    If you happen to be using jQuery UI >= 1.9, this is how it works:

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

    More details on the Tabs Widget API page: http://api.jqueryui.com/tabs/#option-active

提交回复
热议问题