0

I having a problem in changing image. When i click to button it doesn't change i don't know why ?

https://code.sololearn.com/WDEVj5687OQ7/?ref=app

24th Dec 2020, 7:45 AM
Prince Gautam
Prince Gautam - avatar
2 Respostas
+ 2
id of images is img1 and img2 not photo1 and photo2. change it to : document.getElementById('img1').src=xxxx https://code.sololearn.com/WDi9SLGZxvV5/?ref=app
24th Dec 2020, 7:55 AM
Bahhaⵣ
Bahhaⵣ - avatar
0
Thank you both 😊
24th Dec 2020, 8:03 AM
Prince Gautam
Prince Gautam - avatar