I have links (navigation tabs) in my page like this:
<body>
<div id="nav">
<a href="1" class="active">First link</a>
<a href="2" >Second link</a>
<a href="3" >Third link</a>
</div>
</body>
and I can’t figure out why my jquery script doesn’t work to change the class of the clicked link to active and to remove any class from other links.
You’ll want something like: