Jquery - add a class to div on hover


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



Copy this code and paste it in your HTML
  1. $('.project').hover(
  2. function() {
  3. $(this).addClass('hover');
  4. },
  5. function() {
  6. $(this).removeClass('hover');
  7. }
  8. );

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.