JSFiddle - React, Tailwind, and code Playground

by GaryC123

HTML

<select id="mySelect">
    <option>1</option>
    <option>2</option>
    <option>3</option>
</select>

JavaScript

document.getElementById('mySelect').options.length = 0