Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 87158

Re: try changing a code jquerty imgen so dynamic but does not work

$
0
0

Indeed, when you use attr, you will need to change the image from div to img.

Another way would be to use the css background-image in which case you can keep the div.

 

sym.$('elementName').css({'background-image':'url("images/imageName.jpg")'});


Viewing all articles
Browse latest Browse all 87158

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>