JSFiddle - React, Tailwind, and code Playground

HTML

<select id="im1" >
    <option>test</option>
</select>

JavaScript

document.body.appendChild(
    document.createTextNode("select is "
      + window.getComputedStyle(document.getElementById("im1")).display
      + " by default"));