$( \'#xxx\' ).tabs({ select: function(event, ui) { var theSelectedTab2 = ui.index; if (theSelectedTab2 == 0) { $(\'ul li.ep_s1\').removeClass(\'ep_s1\').addClass(\'e
I had to do like this to make it work:
jQuery( "#xxx" ).tabs({active: 1}); jQuery( "#xxx" ).tabs("option", "active", 0);
Doing this way trigger the events soon enough