I need to modify the css of .ui-state-active , .ui-widget-content .ui-state-active to the following:
.ui-state-active , .ui-widget-content .ui-state-active {
You could put the code in the select event of the tab control
select
$( "#tabs" ).tabs({ select: function(event, ui) { //ui.item has the current object for you. } });
http://docs.jquery.com/UI/Tabs#event-select