jQuery getting ID
<p>I'm trying to get the image SRC using this: <code>var SRCNow = $('#'+ID+'.item').attr("src");</code></p>

<p>on this:</p>

<pre><code>&lt;a id='17' href='#' name='item' class='tilelink'&gt;&lt;img title='17' id='17' style='background:red'; class='item' src='line_tile/t17.png' /&gt;&lt;/a&gt;
</code></pre>

<p>So when I click on that image by doing on click image...: <code>var ID = $(this).attr("id");</code></p>

<p>and then I do <code>alert(SRCNow);</code> and I get undefined.... when it should say the SRC.</p>
