browinski
browinski2y ago

browinski – 12-52 Feb 27

Why adding a class like that gives word value in console? then If I do classList.remove it can't see that second class
2 Replies
ScriptyChris
ScriptyChris2y ago
classList returns a DOMTokenList, which contains value property, which represents what actual HTML element has on it's class attribute in the DOM https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList#instance_properties
If I do classList.remove it can't see that second class
Where do you want to see it?
reactibot
reactibot2y ago
This thread hasn’t had any activity in 12 hours, so it’s now locked. Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1079747860091908217