[jQuery] UI/Tabs - events
Hi all!
I use UI/Tabs and I have some questions about it:
1. Is writing an event handler like:
$('.ui-tabs-nav').bind('tabsselect', function(event, ui) {
...
});
the same as:
$('.ui-tabs-nav').tabs({
select: function(ui) {
...
}
});
I've found both versions on UI/Tabs documentation page and can't see
the difference.
2. I've discovered that in:
a. tabsselect event
ui.index - is a newly selected tab
ui.options.selected - is previously selected tab
b. tabsshow event
ui.options.selected - is a newly selected tab
Am I correct here? I was not able to find any documentation about
that.