Tabs - activate ajax tab via text link

Tabs - activate ajax tab via text link


How do I activate a tab via via a text link when the tabs href is
using remote ajax? Here's the html:
<div id="tabs">
<ul>
<li><a href="#tab1"><span>In Person</span></a></
li>
<li><a href="online.php"><span>Online</span></a></
li>
</ul>
<div id="tab1">

Lorem ipsum . . .


</div>
</div>
Here's the javascript:
$("#tabs > ul").tabs({ fx: {opacity: 'toggle'}});
Using a text link on another page works:
<a href="index.php#tab1">Register in Person</a>
But how do I do the same for the second tab?
Thanks - your help is very much appreciated.