+ 13
14th Oct 2020, 8:46 AM
Dipendra
Dipendra - avatar
6 Answers
+ 3
There are two problems in your code 1- Script tag is in the head so it can't know what is document.getElementById("loader ") 2- you used document.getElementById("#loader") instead of document.getElementById("loader")
14th Oct 2020, 10:57 AM
Max Andy MOUMOUNI
Max Andy MOUMOUNI - avatar
+ 8
Yes now working
14th Oct 2020, 10:57 AM
Dipendra
Dipendra - avatar
+ 7
RDC it's still not working
14th Oct 2020, 8:54 AM
Dipendra
Dipendra - avatar
+ 5
Use script in body if you want to do any kind of DOM actions. https://code.sololearn.com/W11Ai24JHm99/?ref=app
14th Oct 2020, 8:50 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 3
Now it should be. You have to access classList property.
14th Oct 2020, 9:00 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 2
The code RDC done is working but what you are trying to do is to hide the loader which what the code now is doing
14th Oct 2020, 10:56 AM
Ruba Kh
Ruba Kh - avatar