Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- const inputs = document.querySelectorAll('.controls input');
- function handleUpdate(){
- console.log(this.value);
- }
- inputs.forEach(input => input.addEventListener('change', handleUpdate));
- console.log(inputs);
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement