Grazie Cavicchiandrea

Ho provato ma non riesco a capire dove inserire il codice
Ho provato cosi
$(function() {
$( "#tabs" ).tabs();
$( ".selector" ).tabs({ active: 2 })
var active = $( ".selector" ).tabs( "option", "active" );
$( ".selector" ).tabs( "option", "active", 2 );

// Hover states on the static widgets
$( "#dialog-link, #icons li" ).hover(
function() {
$( this ).addClass( "ui-state-hover" );
},
function() {
$( this ).removeClass( "ui-state-hover" );
}
);

});