I'm trying to get the image SRC using this: var SRCNow = $('#'+ID+'.item').attr("src");
on this:
<a id='17' href='#' name='item' class='tilelink'><img title='17' id='17' style='background:red'; class='item' src='line_tile/t17.png' /></a>
So when I click on that image by doing on click image...: var ID = $(this).attr("id");
and then I do alert(SRCNow);
and I get undefined.... when it should say the SRC.