james7651922
Posts: 0
Joined: Tue Jul 21, 2015 2:53 am

image swap

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.

Pavel Zarudniy
Posts: 0
Joined: Mon Jul 06, 2015 8:56 am

image swap

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

Return to “Issues”