Adding/Removing Class on Hover


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $('#elm').hover(
  2. function(){ $(this).addClass('hover') },
  3. function(){ $(this).removeClass('hover') }
  4. )

Report this snippet


Comments


You need to login to view comments.