Select by ID within jQuery object to get text
<p>I'm trying to get the text from an jQuery object not yet added to the DOM.
So:</p>

<pre><code>var fragment = $("&lt;span id='thing'&gt;stuff&lt;/span&gt;&lt;span id='thing2'&gt;stuff2&lt;/span&gt;");
</code></pre>

<p>but neither of these will work (trying to get the text "stuff2"):</p>

<pre><code>var test1 = fragment.find("#thing2").text();
var test2 = $("#thing2", fragment).text(); // trying to use fragment as the context
</code></pre>

<p>Can anyone tell me why not?  How can I access the text of a jQuery object before it's added to the DOM?  </p>
