JSFiddle - React, Tailwind, and code Playground

by ToddT

HTML

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

JavaScript

var select = document.getElementById('mySelect');
mySelect.addEventListener('mousedown', function() {
    console.log('mousedown event fired on mySelect');
});