It appears that this:
var img = document.createElement("img");
img.setAttribute("class", "check");
doesn’t work in IE7, that is the styles specified by that class in css are not applied. It works fine in IE8, FF etc. Is there a way of setting the class in IE7 or do I have to do:
img.style.border = ....
Thanks
Just:
Internet Explorer can get really upset when you try to use “setAttribute()” sometimes. I don’t have a VM running but if you’ve got your heart set on using “setAttribute()” then you might try:
but I don’t know that that will work.