Jquery Add/Remove class on hover


SUBMITTED BY: Guest

DATE: June 12, 2013, 2:08 p.m.

FORMAT: JavaScript

SIZE: 131 Bytes

HITS: 1150

  1. $('#elm').hover(
  2. function(){ $(this).addClass('hover') },
  3. function(){ $(this).removeClass('hover') }
  4. )

comments powered by Disqus