JSFiddle - React, Tailwind, and code Playground
by brysmi
HTML
<div class="container">
<form id="myform" name="myform">
<input id="form1.1" name="form1.1" type="text" value="first form field/value" />
</form>
</div>
<div>
<form>
<input id="form2.1" name="form2.1" type="text" value="second form field/value" />
</form>
</div>
JavaScript
alert(document.forms["myform"].elements["field"].value);
alert(document.forms[1].elements[1].value);
alert(document.myform.field.value);