JSFiddle - React, Tailwind, and code Playground
HTML
<script type="text/javascript">
function getField() {
alert($('#f1 #i1')[0])
alert($('#f2 #i1')[0])
}
</script>
<button type="button" onclick="getField()">get</button>
<form id="f1" >
<input type="text" id="i1"/>
</form>
<form id="f2">
<input type="text" id="i1" />
</form>