JSFiddle - React, Tailwind, and code Playground
HTML
<form id="myform">
<input id="myinput" type="text" value="Default" />
<input type="reset" />
</form>
JavaScript
var input = new Element('input', { 'type': "text", 'value': "Javascript-created element" });
$('myinput').insert({after: input});