I use tab widget of jquery ui in my webpage The initialization is ok. but want to capture the on_selected event of a tab to do something else. I followed docs of jquery but it does not work. doc!
I have tried
$( "#editor-tabs" ).tabs();
$("#editor-tabs").bind("tabsshow",function(event,ui){
alert(ui.index);
});
and
$( "#editor-tabs" ).tabs({
select: function(event,ui){alert(ui.index);}
});
Put breakpoints to the callback function and they are not hit.