Posts by J. Buday • 1 point
1 post
-
0
votes3
answers2823
viewsA: How to add and remove classes with Javascript?
With pure Javascript, I thought of something like: // Selecionando elemento no DOM elemento = document.getElementsByName('li')[0]; // Limpando o atributo class elemento.className = ''; // Se você…