Return to Snippet

Revision: 13895
at May 11, 2009 07:02 by johnloy


Initial Code
$.fn.hoverClass = function(classname) {
	return this.hover(function() {
		$(this).addClass(classname);
	}, function() {
		$(this).removeClass(classname);
	});
};

Initial URL


Initial Description


Initial Title
JQuery plugin to add a hover class to an element

Initial Tags
javascript, textmate, jquery

Initial Language
Other