JSFiddle - React, Tailwind, and code Playground
by chiragvidani
HTML
<input id="textbox"type="text"/>
<div>
<input id="1" type="button" value="1"/>
<input id="2" type="button" value="2"/>
<input id="3" type="button" value="3"/>
</div>
JavaScript
$('input[type="button"]').click(function() {
var txt = $(this).val();
$('#textbox').val(txt);
});