How to get current tab title which i named in Jquery Tabs UI

后端 未结 6 564
温柔的废话
温柔的废话 2021-01-19 23:06

I\'m using http://jqueryui.com/demos/tabs/#manipulation. I want to get an title of current selected tab which I earlier named (e.g. from a href). How to get it?

I tr

6条回答
  •  余生分开走
    2021-01-19 23:46

    Use following in case of jQuery 1.9+,

    var currentTabTitle = $('div[id="mytabs"] ul .ui-tabs-active > a').attr("href");
    

提交回复
热议问题