OK, be sure you understand that this is with jQuery Tools (http://jquerytools.org/), not jQuery UI.
I need to know if there is a way to set a default tab via the actual HTML code. The setup code looks like this:
jQuery("ul.tabs").tabs("div.panes > div");
and the HTML is like this:
<div class="tabs-container">
<ul class="tabs ">
<li class="w3"><a href="#" class="current">The active tab</a></li>
<li class="w3"><a href="#">Another tab</a></li>
<li class="w3"><a href="#">Third tab</a></li>
</ul>
<div class="panes">
<div style="display: block;">
Content of first tab
</div>
<div style="display: none;">
Second tab contents
</div>
<div style="display: none;">
Third tab contents
</div>
</div>
I already tried giving the 2nd tab's anchor the class of "current", that didn't work.
After the tabs have been initialized you can get the tab scripting API handle and then select the tab:
The complete reference is here under "Scripting API": http://jquerytools.org/documentation/tabs/