oblo10 0 Newbie Poster

Hi.

I have a jquery tab in my site. I want to set class="current" when clicked a tab. How can I do that?
Thanks.

<script>
$(function() {
$("#tabs").tabs(
{



}
);
});
</script>


<div id="tabs">
<ul class="nav-content" >
<li class="current first-li"><a href="#tabs-1">Tab 1</a></li>
<li><a href="#tabs-2">Tab 2</a></li>
<li><a href="#tabs-3">Tab 3</a></li>
</ul>
<div id="tabs-1">


<p>tab1</p>


</div>
<div id="tabs-2">


<p>tab2</p>


</div>
<div id="tabs-3">


<p>tab3</p>


</div>
</div>

the page is below if it helps

http://www.kolaydil.com/yenisite2/sort.php

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.