SyntaxFix
Write A Post
Hire A Developer
Questions
The other li elements are not siblings of the a element.
$('#menu li a').on('click', function(){ $(this).addClass('current').parent().siblings().children().removeClass('current'); });