Code:
document.getElementById('productThumbs').innerHTML=
"<p>Product 1</p>
<p>Description of product 1</p>
<img src='images/thumbs/product1.png'
class='image'
onclick='changepic('images/product1.png');'
/>";
Is there any way to discover if the class of 'image' has been applied to the image? And why doesn't the onclick function work?
Thanks
Comment