document queryselector click event
snippet in javascript

document queryselector click event

user1155

const buttons = document.querySelectorAll("#select .button")
for (const button of buttons) {
  button.addEventListener('click', function(event) {
    //...
  })
}