I am trying to swap the selected class from tab to tab to display which one is current
$("li.selected").idTabs(function(id,list,set){
$("a",set).removeClass("selected")
.filter("[@href='"+id+"']",set).addClass("selected");
for(i in list)
$(list[i]).hide();
$(id).fadeIn();
return false;
});
so on click I am trying to remove and load the selected class with no luck, tried this
<ul class="idTabs">
<li class="selected"><a href="#request-info">Request more information</a></li>
<li><a href="#test-drive">Request a test drive</a></li>
<li><a href="#make-offer">Make an offer</a></li>
<li><a href="#get-quote">Get a quote</a></li>
</ul>
$('.idTabs li').click(function(){
$('.idTabs li').removeClass('selected');
$(this).addClass('selected');
return false;
});