JSFiddle - React, Tailwind, and code Playground

HTML

<input name="text1" />
<input name="text2" type="text"/>

JavaScript

alert($('input:not([type])').length);