I have the following HTML and I am trying to get the img src attribute:
<span id="firstSpan"><img src="https://mydomain.xyz/imgs/image.jpg" alt="Image Thumbnail" width="48px" height="62px"></span>
Here is how I am attempting to get the url after I have the current object pointing to <img ...'
:
$(this).attr('src')
for some reason I get the 'undefined' value