Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <input id="display" type="text">
- <button>1</button>
- <button>2</button>
- <script>
- var btn = document.querySelectorAll("button");
- btn = Array.from(btn);
- btn.forEach(function(b){
- console.log(b.innerHTML);
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement