1

1

I'm stuck on how to add a class on hover and remove it on mouseout.

flag

1 Answer

1

Give this a try:

$("#hover-element").hover(function() {
    $(this).addClass("hover");
}, 
  function () {
    $(this).removeClass("hover");
});
link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.