JSFiddle - React, Tailwind, and code Playground
by maximua
HTML
<input class="btn" type=button value="button 1" />
<input class="btn" type=button value="button 2" />
<input class="btn" type=button value="button 3" />
<input class="btn" type=button value="button 4" />
JavaScript
$(document).ready(function () {
$('.btn').mouseup(function() {
alert($(this).val());
});
});