i have any navigation menu !
<div class="nav">
<ul class="navigation">
<li class="selected"><a href="#">HOME</a></li>
<li><a href="#">PROFILE></a></li>
<li><a href="#">CONTACTUS</a></li>
<li><a href="#">ABOATUS</a></li>
</ul>
</div>
Now how to add selected class after click to any ( profile, Contactus, aboutus ) and remove selected home using Jquery.
Thanks
e.stopPropagation()
bubbling up the dom tree? Is it in case the surrounding wrappers are attached to click events? – Wulfenite