JSFiddle - React, Tailwind, and code Playground

HTML

<input name="1">
<input id="me">
<select name="no"></select>
<select id="andMe"></select>

JavaScript

alert($('input[id], select[id]'));