JQuery - Access children by ID from Raw HTML
<p>I am new to JQuery, so this may be a stupid question, however I have not been able to find a solution.</p>

<p>I have a raw HTML string stored as a JS variable, as shown below.  What I would like to do is parse the HTML string as a DOM object, and be able to access and change any children within the div by their id.</p>

<p>So, I would need to access "ht" and "vt" by id after the raw HTML is parsed.  How would I perform this?</p>

<pre><code>var htmlStr = "&lt;div&gt;&lt;span id='ht'&gt;test 1&lt;/span&gt;&lt;span id='vt'&gt;test 2&lt;/span&gt;&lt;/div&gt;";
$(htmlStr).ht // Something like this, that would return "test 1"
</code></pre>

<p>I am basically trying to use some raw HTML as a template for creating items in an unordered list.  I would create the new list item using the template, and then replace certain portions of the template with data from a web service.</p>

<p>Thanks</p>
