 <p>try something like this.Working <a href="http://jsfiddle.net/bKZ2a/" rel="nofollow">fiddle</a></p> <pre><code> $(function(){ $('.menuHolder li a').click(function (e) { $('.menuHolder li a').removeClass('active'); $(this).addClass('active'); }); }); </code></pre>