var class_name='classname'; elements=document.getElementsByClassName(class_name) for(element of elements){ element.classList.remove(class_name) }