0
Why is this code not working?
It says 'Uncaught TypeError: Cannot read property 'style' of null Line_3' Here is the code https://code.sololearn.com/WB8pAjtZbmPZ/#html
2 ответов
+ 4
change your class to id and it works(in line 8 and line 23 html section)
OR
Only change getElementById to querySelector in the JS section and it works.
0
thx