JSFiddle - React, Tailwind, and code Playground

by Sascha

HTML

<select id="test">
<option>123</option>
<option>hihdfisd</option>
</select>

CSS

select {
  display: table;
}

option {
  background: blue;
  color: white;
  height: 100px;
  width: 200px;
  line-height: 80px;
  min-height: 80px;
  padding: 20px;
  display: block;
  margin: 20px;
}

JavaScript

document.getElementById("test").click();