I couldn't get the cookie option to work so I just wrote my own cookie
selector. It seems to be working fine so far but your mileage may
vary. Here is the code if anyone is curious:
var productTabs = $("#tabs");
var cookieTab = $.cookie('product-tabs');
var activeTab = 0;
if (cookieTab !== null) {
activeTab = cookieTab;
}
productTabs.tabs({
selected: activeTab,
show: function(event, ui) {
var cookieTab = productTabs.tabs('option',
'selected');
$.cookie("product-tabs", cookieTab, {
path: "/"
})
}
});