/ Published in: jQuery
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
(function($) {
$.fn.PLUGIN_NAME = function(options) {
var opts = $.extend({}, $.fn.PLUGIN_NAME.defaults, options);
return this.each(function() {
$this = $(this);
$this.css({ 'color': opts.color });
$this.html($.fn.PLUGIN_NAME.METHOD(opts.text));
});
};
$.fn.PLUGIN_NAME.METHOD = function(txt) {
return txt;
};
$.fn.PLUGIN_NAME.defaults = {
color: 'red',
text: 'Hello world! '
};
})(jQuery);
Comments
 Subscribe to comments
                    Subscribe to comments
                
                