Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div id="div1"></div><br>
<button onclick="myFunction()">Create</button>
<script type="text/javascript">
function myFunction() {
var form0 = document.getElementById("div1");
var form1 = document.createElement("input");
form0.appendChild(form1);
form1.value = "TEST";
}
</script>
</body>
</html>
The most helpful JAVASCRIPT solutions