(function( $ ) {
$.fn.greenify = function( options ) {
// This is the easiest way to have default options.
var settings = $.extend({
// These are the defaults.
color: "#556b2f",
backgroundColor: "white"
}, options );
// Greenify the collection based on the settings variable.
returnthis.css({
color: settings.color,
backgroundColor: settings.backgroundColor
});
};
}( jQuery ));
how to I call this function on a button clicK, please?
↧
Create a new Site using JQuery and Rest Services
↧