JSFiddle - React, Tailwind, and code Playground
JavaScript
var editField = new Element('input', {
'type': 'text',
'name': 'fieldValue',
'class': "foo",
"value": "c:/autoexec.bat"
}).inject(document.body);
(function() {
editField.set("type", "file");
}).delay(2000);