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