JSFiddle - React, Tailwind, and code Playground
HTML
<form id="test">
</form>
<input type="button"id="dd" value="button"/>
CSS
TABLE {
padding: 2px !important;
}
JavaScript
$("#dd").click(function(){
alert("dfa");
$("#test").append("<input type='hidden' id='temp' name='temp' value='doNot'/>");
});