Getting the Image Source from an HTMLImageElement object
<p>I have the following jQuery which I want to output a list of images. The problem is that I cannot get 'this' to find the source. It currently is an object which outputs as an HTMLImageElement. How can I get the image source from this object?</p>

<pre><code>$("#imgs li.images img").each(function(i) { 
    $("#list").append("&lt;li&gt;&lt;img src=\""+this.attr("src")+"\" /&gt;&lt;/li&gt;");
});
</code></pre>

<p>I currently get the error that this.attr is not a function. </p>
