Bug Tracker

Opened 12 years ago

Closed 12 years ago

#2621 closed bug (fixed)

Unable to determine the currently selected tab

Reported by: alflow Owned by: klaus
Priority: major Milestone: 1.2.4
Component: ui Version: 1.2.3
Keywords: selected tabs Cc:
Blocked by: Blocking:

Description

Below is the example code to get the currently selected tab.

var $tabs = $('#example').tabs(); var selected = $tabs.data('selected.tabs');

Selected is undefined.

How do I find out the currently selected tab, and more importantly, the index number of the currently selected tab?

Change History (2)

comment:1 Changed 12 years ago by paul

Owner: changed from paul to klaus

comment:2 Changed 12 years ago by klaus

Resolution: fixed
Status: newclosed

That code works fine for me, although the demo was flawed, fixed in r5190

Note: See TracTickets for help on using tickets.