Tabbar - Get Target Tab on Select

Hi,

Im trying to get the target tab when a tab is clicked; but if i use the “onSelect” event i get the previous tab instead of the target:

tabbar.attachEvent("onSelect", function() { alert("Tab Changed: "+tabbar.getActiveTab()); return true; });

how can i get the target tab onSelect ??

Thanks !!!

Best Regards,
Francisco

Hi,

onSelect event handler takes the id of the new active tab as a parameter:

tabbar.attachEvent(“onSelect”, function(id) {
alert("Tab Changed: "+id);
return true;
});