How get the src value from the img clicked
<p>I would get the src value of an img clicked. I have this HTML  <a href="https://jsfiddle.net/4k541boj/" rel="nofollow">https://jsfiddle.net/4k541boj/</a><code>code</code></p>

<pre><code> &lt;span id="sinistra"&gt;
        &lt;img src="http://www.bicielettriche.bikeitalia.it/wp-content/uploads/2014/11/bici-elettrica-piaggio.png"&gt;
        &lt;img src="https://eradellabicicletta.files.wordpress.com/2013/01/bici-da-corsa-rb1000-team-edition.jpg"&gt;
        &lt;img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR9ty91M-QHPrgy6woAJAgdF68UrTD8c91WXz5dfznU1R_2GQ5Qjw"&gt;
        &lt;/span&gt;

$('#sinistra img').click(function(){
   alert($(this).attr('src'));
});
</code></pre>

<p>But i don't understand where i'm wrong.
can someone help me?</p>