JSFiddle - React, Tailwind, and code Playground
HTML
<input type="button" value="Button 1" />
<input type="button" value="Button 2" />
<input type="button" value="Button 3" />
JavaScript
$(document).ready(function() {
$("input").click(function() {
var btn = document.createElement("input");
btn.setAttribute("type", "button");
btn.setAttribute("value", "Added");
document.body.appendChild(btn);
});
});