I having a problem in changing image. When i click to button it doesn't change i don't know why ? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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