<ul class="search-tabs">
<li class="rent active">Rent</li>
<li class="buy">Buy</li>
<li class="sell">Sell</li>
</ul>
<form id='rent' class='visible'>
<form id='buy'>
<form id='sell'>
This is my code and I wan't to create a feature that does the following:
It adds the 'active' class, but doesn't remove the 'active' class from the other li's that have not been clicked. Any solution? Please help!