I am using the jquery ui tab widget on my Initialization webpage in order. but want to capture the on_selected event in a tab to do something else. I followed the jquery docs but that didn't work. doc !
I 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 on the callback function and they are not affected.
source
share