get the current tab in jQuery UI tabs

后端 未结 11 1033
無奈伤痛
無奈伤痛 2021-01-01 16:46

I am using jQuery UI Tabs inside of the jQuery UI dialog window.

I\'ve come across an instance, where I need to find the id of the current tab when clicking on one o

11条回答
  •  执笔经年
    2021-01-01 17:15

    For JQuery UI 1.11+ this worked for me:

    $("ul>.ui-tabs-active").attr('aria-controls');
    

提交回复
热议问题