I know this question have been asked several times, but any of the answer solved my problem till now. If I have a tab component form Jquery, whose title names for each tabs are Tab1: Marc, Tab2: Paul, Tab3: John, how I can get in a alert e.g, the title (text) of the current selected tab? For example: if the selected tab the first one is "Marc", I want to get in a alert "Marc" and not 0 as index of the tab. The following was what I tried but is not working
function getSelectedTabText() {
return $("#tabs").tabs('option', 'active').text();
}
The text of each tab is loaded from the DB with PHP without any problem, I can get my Tab component with the name of each tab correct loaded.