JSFiddle - React, Tailwind, and code Playground

by cgough

HTML

<div>
<textarea type="text" id="queueInput"></textarea>
</div>

<div id="queueFillpointButton">
    <button>9</button>
</div>

JavaScript

window.onload = function () {
            var queueInput = document.getElementById('queueInput'),
                queueFillpointButton = document.getElementById('queueFillpointButton'),
                buttons = queueFillpointButton.getElementsByTagName('button');
            for (var i = 0; i < buttons.length; i++) {
                buttons[i].onclick = function () {
                    queueInput.value = queueInput.value + this.innerHTML;
                    return false;
                };
            }
        };