Posted By

johnloy on 05/11/09


Tagged

javascript textmate jquery


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

VaiT
chrisjlee


JQuery plugin to add a hover class to an element


 / Published in: Other
 

  1. $.fn.hoverClass = function(classname) {
  2. return this.hover(function() {
  3. $(this).addClass(classname);
  4. }, function() {
  5. $(this).removeClass(classname);
  6. });
  7. };
  8.  

Report this snippet  

You need to login to post a comment.