{"id":6324,"date":"2014-04-15T19:46:29","date_gmt":"2014-04-15T19:46:29","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/15\/how-to-get-currently-selected-tab-index-in-jquery-ui-collection-of-common-programming-errors\/"},"modified":"2014-04-15T19:46:29","modified_gmt":"2014-04-15T19:46:29","slug":"how-to-get-currently-selected-tab-index-in-jquery-ui-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/15\/how-to-get-currently-selected-tab-index-in-jquery-ui-collection-of-common-programming-errors\/","title":{"rendered":"How to get currently selected tab index in jquery UI?-Collection of common programming errors"},"content":{"rendered":"<p>In jquery UI, using their newest version, I can&#8217;t get the ID of the selected tab anymore. I tried <code>ui.index<\/code> from jQuery UI Tabs Get Currently Selected Tab Index, but it gives me undefined.<\/p>\n<p>Does anyone know the way to do this now?<\/p>\n<pre><code>$( \"#tabs\" ).bind( \"tabsactivate\", function(event, ui) { \n    alert(ui.index);\n});\n<\/code><\/pre>\n<p>In this code, I get the alert every time I select a new tab, but its says undefined.<\/p>\n<p>Thanks<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In jquery UI, using their newest version, I can&#8217;t get the ID of the selected tab anymore. I tried ui.index from jQuery UI Tabs Get Currently Selected Tab Index, but it gives me undefined. Does anyone know the way to do this now? $( &#8220;#tabs&#8221; ).bind( &#8220;tabsactivate&#8221;, function(event, ui) { alert(ui.index); }); In this code, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6324","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6324"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6324\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}