How to create an empty jQuery result
<blockquote>
  <p><strong>Edit</strong>: As of jQuery 1.4, using <code>$()</code> will work as described below.</p>
</blockquote>

<hr>

<p>I need to loop through an array and create a number of elements which I want to have in a single jQuery result object.</p>

<pre><code>for (var i = 0; i &lt; 10; ++i) {
    $myJQueryObj = $myJQueryObj.add($("&lt;span&gt;blahblah&lt;/span&gt;"));
}
</code></pre>

<p>The problem with this, however, is that you need a jQuery object to begin with, and you obviously want to start it empty. In the above example, how should I initialise <code>$myJQueryObj</code> ?</p>

<p>The following examples do not work, as they all select the document object:</p>

<pre><code>$('')
$()
$(null)
$(false)
</code></pre>

<p>These do work... but...</p>

<pre><code>$('#nonExistantElement')  // yuck
$().slice(0,0)            // surely there's a nicer way?
</code></pre>

<p>Is there a better way?</p>
