here is html:
menu item menu i
Maybe you mean this?
$('ul li').each(function(){ var t = $(this); t.find('a').click(function() { $('ul li').removeClass('current'); t.addClass('current'); }); });