Need currently selected tab ID for jQuery tabs

前端 未结 10 2464
臣服心动
臣服心动 2020-12-11 01:10

I know I can get the index of the currently selected tab but can I somehow get to the ID (the equivalent of the ui.panel.id if this were triggered by an tab eve

10条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-11 01:31

    This works:

    $('#divName .ui-tabs-panel[aria-hidden="false"]').prop('id');
    

提交回复
热议问题