I need to get the attribute of an img object that is a sub element of 'this' but I can't figure out how to traverse 'this' to get there.
The contents of 'this' are:
this works:Code:<div id="test1"><img src="images/beach1.jpg" width="200" height="200" alt="beach" /></div>
This does not:Code:$('#output').html("ID: " + this.id);
How do I get the contents of the img.src attribute'?Code:$('#output').html("SRC: " + this.img.src);