JSFiddle - React, Tailwind, and code Playground

by OsamaMohamed

HTML

<input type="button" onclick="fun(this)" id="btn_one" value="one">
<input type="button" onclick="fun(this)" id="btn_two" value="two">
<input type="button" onclick="fun(this)" id="btn_thee" value="three">

JavaScript

function fun(t){
    alert(t.value);
}