views:

132

answers:

0

I'm having some issues with jqueryui tabs and linking to certain tabs on another page.

Basically, each page has tabs, and all are navigational via drop down at the top, with each 'tab' being available in the drop down. Currently I'm able to text-link, but only within the page I'm on, and I'm just lost on the getting it to work correctly from page to page.

Here's what I currently got working with internal text link.

$(function() {
    $("#tabs").tabs(
                    {fx: { opacity: 'toggle' },
                    selected: 0}
                    );

    var $tabs = $('#tabs').tabs(); // first tab selected

    $('a.nutrlink').click(function() { // bind click event to link
    $tabs.tabs('select', 1); // switch to third tab
    return false;
    });
});