title: Jquery add class attribute src img
body: <p>I tried to add a class to the following HTML code with jquery:</p>
  
  <pre><code>&lt;img style="position: absolute; left: 0px; top: 0px; width: 37px; height: 94px; -moz-user-select: none; border: 0px none; padding: 0px; margin: 0px;" src="http://maps.gstatic.com/intl/it_ALL/mapfiles/smc.png"&gt;
  </code></pre>
  
  <p>I tried doing this with this code and a few other ways but it did not work</p>
  
  <pre><code>&lt;script&gt;
    $( 'img[src="http://maps.gstatic.com/intl/it_ALL/mapfiles/smc.png"]' ).addClass("selected");
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>where is my error?</strong></p>