Currently I use:
<div id="tabs" class="basictab">
<ul>
<li><a href="#fragment-1" id="Beta"><span>B.E.T.A. Plans</span></a></li>
<li><a href="#fragment-2" id="Mini"><span>Mini-Sites</span></a></li>
<li><a href="#fragment-3" id="Independent"><span>Independent Sites</span></a></li>
<li><a href="#fragment-4" id="Tools"><span>Tools</span></a></li>
</ul>
<div id="fragment-1" class="tabcontainer">
<nav:beta runat="server" ID="beta1" Visible="true" />
</div>
<div id="fragment-2" class="tabcontainer">
<nav:mini runat="server" ID="mini1" Visible="true" />
</div>
<div id="fragment-3" class="tabcontainer">
</div>
<div id="fragment-4" class="tabcontainer">
<nav:tools runat="server" ID="tools2" Visible="true" />
</div>
</div>
<script type="text/javascript" >
$(document).ready(function(){
var $tabs = $("#tabs").tabs({event: 'mouseover'});
$tabs.tabs("select", 3);
});
</script>
to select a specific tab. When I do this how do I change the css of the selected tab? Wouldn't I want to chain off the
$tabs.tabs("select",3);
I have tried:
$tabs.tabs("select",3).removeClass('basictab').addClass('basictabactive');
but this changes the css for ALL the classes.
Many thanks in advance from a jQuery n00b.