Aggregating a jQuery object?
<p>I'm authoring a plugin, and the plugin needs to do something like aggregate a set of jQuery objects. How does one do this?</p>

<p>For example:</p>

<pre><code>&lt;p&gt;&lt;a&gt;...&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a&gt;...&lt;/a&gt;&lt;/p&gt;
</code></pre>

<p>With</p>

<pre><code>(function( $ )
{
    $.fn.myfunc = function( settings )
    {

    };
})(jQuery);
</code></pre>

<p>Within the context of the plugin invoked with $('p').myfunc(), how would I return all the  elements, for example? The elements I'm returning will not necessarily be contained or near the elements selected, as this is just an example.</p>
