title: How do I get the 'src' attribute from an image tag?
body: <p>I have the following HTML and I am trying to get the img src attribute:</p>
  
  <pre><code>&lt;span id="firstSpan"&gt;&lt;img src="https://mydomain.xyz/imgs/image.jpg" alt="Image Thumbnail" width="48px" height="62px"&gt;&lt;/span&gt;
  </code></pre>
  
  <p>Here is how I am attempting to get the url after I have the current object pointing to <code>&lt;img ...'</code> :</p>
  
  <pre><code>$(this).attr('src')
  </code></pre>
  
  <p>for some reason I get the 'undefined' value</p>