using jquery to get the 'src' of an image link?
<p>Say i have the following:</p>

<pre><code>&lt;a class="class1"&gt;&lt;img src=".." /&gt;&lt;/a&gt;
</code></pre>

<p>If I am currently in the click event of a.class1, how to I pull the 'src' value of the 'img'?</p>

<p><strong>Update:</strong> for some reason neither of the suggestions below worked. My code looks like this:</p>

<pre><code> $("a.class1").click( function() {
     alert($(this).children('img').attr('src'));
 });
</code></pre>

<p>This pops up 'undefined' (for both suggestions).  Why is this happening?</p>
