JSFiddle - React, Tailwind, and code Playground
HTML
<input type='button' id='target' value='A button'>
<br>
<button type='button' id='target2'>Another Button</button>
CSS
button{
display:none;
}
JavaScript
$('#target').click(function(){
alert($(this).val()); //use .val() if you're getting the value
});
$('#target2').click(function(){
alert($(this).html()); //use .html() if you're getting the the text between the tag
});