I need to add & remove class on click of anchor tag.
<div class="activeTab">
<a href="#." class="active">Active</a>
<a href="#.">Inactive</a>
</div>
Above div has two anchor tags & "Active" & "Inactive" one has a class 'active'. my requirement is need to remove that 'active' class on click of "Inactive" anchor tag & add the class 'active' to that clicked "Inactive" anchor and if I clicked on "Active" anchor again the class will remove form "Inactive" anchor & will add to the "Active" anchor. with jquery.