JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id="t1"/>
<input type="button" id="t2" value="dash"/>
JavaScript
$('#t2').on('click',function(){
alert('100');
});
<input type="text" id="t1"/>
<input type="button" id="t2" value="dash"/>
$('#t2').on('click',function(){
alert('100');
});