I would like to know how to select all elements with class names \"widget\" and \"hover\" and then remove class \"hover\" from these elements.
I have the following J
elements is an array of DOM objects. You should do something like this
for (var i = 0; i < elements.length; i++) { elements[i].classList.remove('hover'); }
ie: enumerate the elements collection, and for each element inside the collection call the remove method