Jquery tabs, toggle with radio button

Jquery tabs, toggle with radio button

Using jquery tabs, what I am after is for the user to click a radio button 1 and thus tab 1 will be selected. If user clicks radio button 2 then tab 2 will be selected.

At the moment I have the opposite. The user clicks on the first tab and radiobutton1 is checked, and so forth for radiobutton2.

I tried to use the 'show/hide' method div in previous posts, but the problem i face is that tab2 will show, but the actual tab link still shows that tab1 is enabled. Am I on the right path to try this method? or is there a better way someone can suggest?