Please someone help me in JavaScript DOM when I select the elements from HTML and tried to change the contents it return null 🖐 | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Please someone help me in JavaScript DOM when I select the elements from HTML and tried to change the contents it return null 🖐

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

30th Sep 2022, 10:25 PM
Ibrahim Habibu
Ibrahim Habibu - avatar
2 Antworten
+ 4
Hey! That's because your javascript runs before the document has finished loading. Try this: https://code.sololearn.com/WjMHYblpbpbb/?ref=app
30th Sep 2022, 10:30 PM
Schindlabua
Schindlabua - avatar
0
Thank you so much 👏
30th Sep 2022, 11:08 PM
Ibrahim Habibu
Ibrahim Habibu - avatar