+ 1

Pls whats wrong with this code its working perfectly on my acode app but is not working here why pls guys need help

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

17th Jul 2021, 8:48 AM
blackfugee
blackfugee - avatar
2 Respuestas
+ 3
In this case, javascript is loaded before the html document and therefore does not see the html elements it is referring to. Use the onload method: onload = function(){your code}
17th Jul 2021, 8:53 AM
Solo
Solo - avatar
+ 1
Thanks its working perfectly
17th Jul 2021, 4:04 PM
blackfugee
blackfugee - avatar