I want when mouse goes on li jquery add a class to the element:
li
Menu Item Menu Item
This will work, when you mouse over li it will add is_hovered to li and remove from other li.
is_hovered
$(".menu li").mouseover(function(){ $(".menu li").removeClass("is_hovered"); $(this).addClass("is_hovered"); });