/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$.fn.hoverClass = function(classname) { return this.hover(function() { $(this).addClass(classname); }, function() { $(this).removeClass(classname); }); };