Can not use document.getElementById ?? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Can not use document.getElementById ??

I have .html file which has: <p class="abc" id="days"> But I cannot use: document.getElementById("days") in my .js file, it return null. Please tell me why, thanks.

11th Mar 2021, 5:26 AM
Quý Nguyễn
Quý Nguyễn - avatar
1 Réponse
+ 2
See if your problem is covered in this post https://www.sololearn.com/post/90825/?ref=app
11th Mar 2021, 5:31 AM
Ipang