How to extract img element out of this using jquery?
<p>How do I get img element out of this:</p>

<pre><code>&lt;td&gt;&lt;img src="blah" /&gt;&lt;/td&gt;
</code></pre>

<p>Thanks.</p>

<p>edit: what I mean is, the above is what I have when I loop through my each statement for each iteration and I want to get rid of the     <code>&lt;td&gt;&lt;/td&gt;</code>.  I'm not searching the entire document.</p>

<p>Further edit: Here is more code. I tried to cut to the heart of the problem but didn't explain it well enough.</p>

<pre><code>$(this).closest('tr').children().each(function(){
//some code

        });
</code></pre>

<p>That is my each function which gets all the td elements of a table row. In the case of text I can use the text() function to get the text, but when it is</p>

<pre><code>    &lt;td&gt;&lt;img /&gt;&lt;/td&gt;
</code></pre>

<p>I don't know how to get the img out. Does that help explain?</p>

<p>Thanks</p>
