why $(“img”)[0] doen't work?
<p>code:</p>

<pre><code>&lt;img src="image1.jpg" alt="This is 1 test."&gt;

&lt;img src="image2.jpg" alt="This is 2 test"&gt;
</code></pre>

<p>jquery code:</p>

<pre><code> alert($('img')[0].attr('alt'));
</code></pre>

<p>why there is not pop up a box, and shows <code>This is 1 test.</code></p>
