JSFiddle - React, Tailwind, and code Playground

HTML

<h2>with js</h2>
<select id=a>
    <option>1
    <option>2
</select>
        
<h2>without js</h2>
<select id=b>
    <option style="display:none;">
    <option>1
    <option>2
</select>

JavaScript

$('#a').prop('selectedIndex', -1)