I am trying to get the original attribute of all images with a specific div, but for some reason it tells me that the .attr () function does not exist ...
What a function. Firebug also tells me that "this" is an image element. I am using jQuery v1.3.2
$('#products LI DIV IMG').each(function() {
var image = this;
alert(image.attr('src'));
});
Any idea how to fix this?
Thanks in advance!
source
share