Answers for "document queryselector click event"

4

document queryselector click event

const buttons = document.querySelectorAll("#select .button")
for (const button of buttons) {
  button.addEventListener('click', function(event) {
    //...
  })
}
Posted by: Guest on April-07-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language