JSFiddle - React, Tailwind, and code Playground
HTML
<script>
function addTA(f) {
var TA=document.createElement("TEXTAREA");
TA.value=(new Date());
TA.name="N_"+2;
f.appendChild(TA);
}
function fun(f) {
alert(f["N_"+1].value);
alert(f["N_"+2].value);
return false;
}
</script>
<form onsubmit="return fun(this);">
<textarea name="N_1">456789</textarea>
<input type=submit>
<input type=button onclick="addTA(this.parentNode);" value="Добавить поле">
</form>