Monday, January 27, 2014

jQuery Plugin

$.fn.red = function() {
return this.each(function() {
$(this).css("color", "f00");
});
};

Usage:

$("#id").red();