JSFiddle - React, Tailwind, and code Playground

by dying_sakura

HTML

<script>
    function setText7(obj){
    var val = obj.value;
    console.log(val);
    document.getElementById('textBox').value = val;
}
</script>
<input type="button" name="btnSeven" id="btnSeven" value="7" onclick="setText7(this)">
<input type="number" name="textBox" id="textBox" value=""/>