DOM - Iteration

DOM - Iteration

About

over a list of element

Web API

const buttons = document.querySelectorAll('.nav-button.is-selected')
  Array.prototype.forEach.call(buttons, (button) => {
    button.classList.remove('is-selected')
})







Share this page:
Follow us:
Task Runner