javascript remove all class code example
Example: remove a class from all elements javascript
var class_name='classname';
elements=document.getElementsByClassName(class_name)
for(element of elements){
element.classList.remove(class_name)
}
var class_name='classname';
elements=document.getElementsByClassName(class_name)
for(element of elements){
element.classList.remove(class_name)
}