First made using jquery, but trying to remake it with only javascript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

First made using jquery, but trying to remake it with only javascript

https://code.sololearn.com/WZkmy3jCpM9j I built this with jquery and not I remade it with just javascript but I'm having problems on lines 55 and 68. Please help me understand where I went wrong?

23rd Jun 2018, 6:48 PM
Zeppelin Fogarty
Zeppelin Fogarty - avatar
4 Answers
+ 2
try using window.onload
23rd Jun 2018, 6:52 PM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 1
Like above, you need to load DOM before JS loads otherwise you will keep selecting elements that doesnt exist yet.
23rd Jun 2018, 10:12 PM
damyco
damyco - avatar
24th Jun 2018, 2:08 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
0
says page not found when i click the link.
24th Jun 2018, 5:43 AM
Zeppelin Fogarty
Zeppelin Fogarty - avatar