Page 1 of 1

image swap

Posted: Wed Jul 22, 2015 5:01 pm
by james7651922

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.


image swap

Posted: Thu Jul 23, 2015 5:46 am
by Pavel Zarudniy

Hi james,
You can use prop method with 'src' attribute:
code
Apperyio("<image>")&#46;prop('src', '<img_src>');
/code