I have some js code which generates an image-tag like this:
main_pic_div.innerHTML ="<img src='"+path_big_image+"?"+Math.random();"' class='shadow'>";
But the class wont be applied to it...
Here is what you get when you 'view source' in firefox:
<img src="ad_images/Bilar/441372870_1.jpg?0.6932381395385144"/>
The class isn't even there, why?
I have tried with all kinds of quotes!
Thanks