Blog posts filed under “DOM Manipulation”How to replace a class in vanilla JSConditionally toggle a class in vanilla JS