question about show event on tab

question about show event on tab


Hi, all
I would like to retrieve 'selected' option to know which tab is
displayed currently. The following seems doesn't work:
$('#working_tab > ul').tabs({
show: function(xevent,xui){
console.log($(this).data('selected'));
}
How do I know which tab is selected? Thank you in advance!
jack