0
Why my orogram doesn't work
When you click on picture, in input field should appear the name of animal writen under the picture. https://code.sololearn.com/WrqqUtfGqQ1F/?ref=app
1 Answer
0
Adilx01
Just pass single class name inside this function without writing dot(.) and also img is not a class name, it's a tag
document.getElementsByClassName(" "); here should be only className without dot(.)
Here is solution using query selector
https://code.sololearn.com/W4NXRTA7mfO7/?ref=app