Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

change on id

const boxes = document.querySelectorAll('.box');

boxes.forEach(box => {
  // ✅ Remove class from each element
  box.classList.remove('big');

  // ✅ Add class to each element
  // box.classList.add('small');
});
Source by bobbyhadz.com #
 
PREVIOUS NEXT
Tagged: #change #id
ADD COMMENT
Topic
Name
9+6 =