Twitter bootstrap tabs and javascript events

后端 未结 7 1600
悲哀的现实
悲哀的现实 2021-01-30 05:15

I am using twitter bootstrap for a project - in particular its tab functions (http://twitter.github.com/bootstrap/javascript.html#tabs)

Now I have this tablist and when

7条回答
  •  天涯浪人
    2021-01-30 05:36

    You can use the following snippet of code in bootstrap 3

    $(document).on( 'shown.bs.tab', 'a[data-toggle="tab"]', function (e) {
       var activatedTab = e.target; // activated tab
    })
    

提交回复
热议问题