Tabs default to first tab when clicking a link in panel

Tabs default to first tab when clicking a link in panel

Hi,

I have 3 tabs. Each tab has inside its panel container links to other pages. When you click on one of those links the page reloads but the tabs default to the first tab (not the tab that the page is selected in). I've been reading online and found this:


...open links in the current tab instead of leaving the page

"Hijax" links after tab content has been loaded:

$('#example').tabs({
load: function(event, ui) {
$('a', ui.panel).click(function() {
$(ui.panel).load(this.href);
return false;
});
}


but have yet to get it working... plus, I am not using jquery ui, I am using just the simple
tabs.js plugin.

I have even tried $('#tabs').tabs({tabsselect, 'current'}) and $('#tabs').tabs({tabsselect, "selected"})
});

please help