How can I add/remove class on a second element with vanilla JS?
1933
How can I change an element's class with JavaScript?
141743
What is the best way to conditionally apply a class?
103672
How do I select the "last child" with a specific class name in CSS?
87280
Is there a way to combine $(this) with :nth-child?
32147
Remove CSS class from element with JavaScript (no jQuery)
19757
Bind an element to two sources
118086
CSS3 selector to find the 2nd div of the same class
131073
Remove multiple classes at once
58228
How can I replace one class with another on all elements, using just the DOM?
109873
Simple HTML Dom: How to remove elements?
130467
JavaScript (jQuery?): Toggle multiple classes with one click
25092
How do I attach events to dynamic HTML elements with jQuery?
106840
jQuery - regexp selecting and removeClass()?
127628
How Can I Add a "Selected" Class Based on URL with jQuery?
33170
How to getElementByClass instead of GetElementById with JavaScript?
17523
How to remove an HTML element using Javascript?
48719
How to add a custom CSS class to core blocks in Gutenberg editor?