JSFiddle - React, Tailwind, and code Playground
by ThiefMaster
HTML
<select id="Type">
<option value="a">1</option>
<option value="b">2</option>
<option value="c">3</option>
</select>
<button id="btn">click me</button>
JavaScript
document.getElementById('btn').onclick = function() {
var elem = document.getElementById("Type");
var type = elem.options[elem.selectedIndex].value;
alert(type);
}