For those who need the same function in IE 8, I solved this problem:
var myImage = $('<img/>'); myImage.attr('width', 300); myImage.attr('height', 300); myImage.attr('class', "groupMediaPhoto"); myImage.attr('src', photoUrl);
I could not get IE8 to use the object in the constructor.
Vedran Maricevic. May 06 '14 at 11:04 2014-05-06 11:04
source share