I\'m using a basic implementation of Jquery UI Tabs that are working fine but I want to set (or reset) the active tab dynamically based on a user action.
H
var currentTab = $('.ui-state-active a').index(); currentTab = $('#divMainContent').find('#sel_tab')[0].value;
Note: Where Sel_tab is hidden field. onclick on tabs achor link assign value to hidden feild