I am trying to retrieve the original height and width of an image stored in a variable called var IMG = $("img")
. The code I have written functions correctly except when used on Win XP IE8. Can someone help me troubleshoot this issue?
$("<img/>")
.attr("src", IMG.attr("src"))
.load(function() {
//The following block of code is not executing
alert(this.width);
});