what's an issue on line number 2 ??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
25th Apr 2022, 2:45 PM
Davinder Kumar
Davinder Kumar - avatar
7 Answers
+ 4
Davinder Kumar JS code loads first before html document so document.getElementById("submitBtn") will return null So write js code inside window.onload function
25th Apr 2022, 2:58 PM
A͢J
A͢J - avatar
+ 2
i have finally solved this. thanks you everyone ❤️
25th Apr 2022, 3:05 PM
Davinder Kumar
Davinder Kumar - avatar
+ 1
please tell me here i don't have enough time to find out
25th Apr 2022, 2:57 PM
Davinder Kumar
Davinder Kumar - avatar
+ 1
Davinder, I don't know whether if I'm the only one who sees the code truncated partially. I saved your code, this is how it looks from my part Each code section (HTML, CSS, JS) was cutoff to 500 characters. https://code.sololearn.com/Wq43fpVYvt7j/?ref=app
25th Apr 2022, 3:00 PM
Ipang
+ 1
Ipang no complete code
25th Apr 2022, 3:02 PM
Davinder Kumar
Davinder Kumar - avatar
+ 1
Davinder, Could this mean a bug? I've seen some codes broken like this for a couple of days ...
25th Apr 2022, 3:04 PM
Ipang
0
To solve the problem keep searching in javascript course to find the answer.
25th Apr 2022, 2:55 PM
SoloProg
SoloProg - avatar