jquery plugin skeleton [ 769 views ]
Goal: to provide an usable plugin skeleton
(function($){ $.fn.extend({ pluginName: function(options) { var settings = $.extend({ prop_1: null, ... prop_n: null, }, options); return this.each(function() { var $this = $(this); }); } }); })(jQuery);