Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove a class from multiple elements

const boxes = document.querySelectorAll('.box1, .box2, .box3');

boxes.forEach(box => {
  box.classList.remove('big');
});
Source by bobbyhadz.com #
 
PREVIOUS NEXT
Tagged: #remove #class #multiple #elements
ADD COMMENT
Topic
Name
3+7 =