Need currently selected tab ID for jQuery tabs

前端 未结 10 2463
臣服心动
臣服心动 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:26

    If you want the id (or actually the href) from the selected tab, you can use eq() to retrieve the jQuery Object.

    You can see an example here: http://jsfiddle.net/svierkant/hpU3T/1/

提交回复
热议问题