+ 2
What is wrong with this!!
Please take a look at the JS code and tell me what is the problem. Link: https://code.sololearn.com/W3X9IJff9H4H/#js
9 odpowiedzi
+ 2
changeclass[i].classList.remove("newclass", "onetherclass");
changeclass[i].classList.add("poor");
+ 3
ab is called prior to body load. move it from line 14 to between 6 and 7.
+ 2
you should probably have function ab, not functon
+ 2
Sure. Elements can have multiple classes so you need to remove any you don't want.
+ 2
There won't be any errors having classes that aren't used.
+ 2
Thank you.☺
+ 1
No i fixed it earlier. It still says innerHTML unable to change property
+ 1
Thanks @john wells
But it still doesn't change the class. Can you help with that?
+ 1
I wanted to change (remove old one) the class of one tag. How can I do that?