Document QuerrySelector Cliquez sur Événement

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