I'm authoring a plugin, and the plugin needs to do something like aggregate a set of jQuery objects. How does one do this?
For example:
<p><a>...</a></p>
<p><a>...</a></p>
With
(function( $ )
{
$.fn.myfunc = function( settings )
{
};
})(jQuery);
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.