Need currently selected tab ID for jQuery tabs

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

    For jquery version below 1.9:

     
    • Notes
    • Writeback
    • Attorney

    And you can find the active tab using:

     jQuery('#unid').find('li.active').attr('id')
    

提交回复
热议问题