(function($, undefined) { $.fn.pluginName = function(options) { // Default options options = $.extend({ property: "value", onEvent: function() {} }, options); // Iterate over jQuery elements return this.each(function() { // YOUR PLUGIN LOGICS HERE }); }); })(jQuery);