How do you retrieve the image source of an image that the user has clicked on? (jQuery)
<p>I am trying to retrieve the image source of an image that the user has clicked on.
This is what I have and it doesn't seem to be working:</p>

<pre><code>var imgSrc = getSrc(image)

    function getSrc(image) {
        $('img').each(function() {
            $(this).click(function() {
                $(this).attr('src')
            }); //end click
        }); //end each  
    } //end getSrc
</code></pre>
