Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. <button type='button'>1</button>
  2. <button type='button'>2</button>
  3. <button type='button'>3</button>
  4.  
  5. const buttons = document.querySelectorAll('button');
  6. buttons.forEach((btn) => {
  7. btn.addEventListener('click', detect);
  8. });
  9. const detect = () => {
  10. //
  11. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement