having link trigger 2 events

having link trigger 2 events

Ok so I am using the jQuery tabs UI addon.

I am trying to accomplish the following, I have content in a tab, the tab is towards the bottom of the page.

I want the link to activate a specific tab, then go to the area where the tab is, just how an anchor link would work.

$(function() {
    $('#container-1 > ul').tabs();
      $('#reviewLink').click(function() {
         $('#container-1 > ul').tabs('select', 1);
         $("#reviewArea").trigger('click');
         return false;
      });
});


so right now i have 2 links, one that triggers the tabcontainer to select a specific tab.
2nd link is the anchor link

reviewLink when clicked, changes tab (works fine), then it triggers a click on reviewArea which is the anchor link.

the first step works, the second part does not, i made sure the anchor link works and it does. cant figure out why its not working with the trigger event

any help?
    • Topic Participants

    • shoab