(function($) { $.fn.yourFunctionName = function() { // 'this' = jQuery result-set object return this; }; })(jQuery);