I am really getting mad, I searched through jquery ui doc and stackoverflow's questions (tons of questions) but I cannot figure out how to manually activate tabs ( .tabs()
) in jquery 1.10+ .
I founded and tried this solution :
$(mytabs).tabs("option", "active", index);
but it does not seem to work out. Can someone help me to know how to activate a tab , e.g. when I create
a new one?
I can't figure out how jQuery UI has no longer the select
event that , as I could know, accomplished this goal.
I'm creating new tabs
with this function
:
var addTab = function() {
var tabTemplate = "<li><a href='#tabs-1'>non titolato</a></li>";
var li = $.parseHTML(tabTemplate);
$(li).addClass('ui-corner-all');
$(".ui-tabs-nav").append(li);
$("#stepBuilder").tabs('refresh');
}
I would like to activate the last one that was created.