Hi, can you provide an example of javascript code to change the asset of an image on an event? I'm trying to make a basic image swap, but it doesn't seem to be working. Thanks.
Hi, can you provide an example of javascript code to change the asset of an image on an event? I'm trying to make a basic image swap, but it doesn't seem to be working. Thanks.
Hi james,
You can use prop method with 'src' attribute:
code
Apperyio("<image>").prop('src', '<img_src>');
/code