JSFiddle - React, Tailwind, and code Playground

HTML

<form id="someform" name="someform">
    <input name="id" value="23" />
</form>

JavaScript

alert($('input',$('#someform')).length);