> var result = [empty jQuery object];
> $.each(...
>   var element = ...;
>   result.add(element);
> );
>
> But how to create an empty jQuery? Scouring the source code, I eventually

You can just flip the logic around.  Instead of creating an empty
jQuery object and adding elements to it, build the array of elements
and then wrap it in a jQuery object:

var result = [];
$.each(...
        var element = ...;
        result.push(element);
);
var jq = $(result);

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to