Finding elements in an object that started as a string
<p>I've got a textarea:</p>

<pre><code>&lt;p&gt;
    Input:&lt;br&gt;
    &lt;textarea name="text_input" id="text_input"&gt;&lt;/textarea&gt;
&lt;/p&gt;
</code></pre>

<p>I'm trying to treat the textarea value as a jQuery object to be able to find each hypertext link.</p>

<p>That textarea has some related script code:</p>

<pre><code>&lt;script&gt;
$('#text_input').change(process).keyup(process);
function process(){
    var html = $('#text_input').val();
    $(html).find("a").each(function(i,elem){
        alert('got here');
    });
}
&lt;/script&gt;
</code></pre>

<p>In that textarea, I paste, for example, the text:</p>

<pre><code>&lt;html&gt;
&lt;body&gt;
&lt;a href="http://www.google.com/"&gt;hello&lt;/a&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Problem is, the <code>alert()</code> never fires. What am I missing? I guess the <code>$(html)</code> line has issues.</p>
