I am using the code below to create an image with a css class and put it in a div (imagepath1) .
this.imagePath1.innerHTML = "<img src='" + "../path/imagename" + "' class='classname'>";
It is not able to find the image path, as I can see in the DOM element and resource is also not available when seen through "inspect element".
Any clues how to do this?
Thanks, kk
<img/>tag.