Simple Javascript Selectors are not working here on sololearn | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

Simple Javascript Selectors are not working here on sololearn

document.getElementById("whatever") just keeps returning null! The code works fine when it's all on the same page but I dont want to do that. Do I have to link the script using something like <script src="sololearn.js"></script> Its really annoying! No code examples needed here I just need to know if we have to link in the script?

22nd Mar 2018, 2:08 AM
Daniel Prodrick
Daniel Prodrick - avatar
1 Réponse
+ 1
thank you 😁😁😁😁
22nd Mar 2018, 2:31 AM
Daniel Prodrick
Daniel Prodrick - avatar