daily pastebin goal
84%
SHARE
TWEET

code

Shell_Casing Dec 3rd, 2018 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // those list items must show something when clicked
  2. let items = document.querySelectorAll('.items');
  3. items.forEach(item => {
  4.     item.addEventListener('click', alert(`${item.innerHTML}`));
  5. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand