JSFiddle - React, Tailwind, and code Playground
HTML
<button id="get">get</button>
<div></div>
<select id="bbb">
<option>xyz</option>
<option>abcdx</option>
</select>
CSS
div{
width:200px;
height:200px;
background:green;
border:2px solid black;
}
JavaScript
$('#get').click(function() {
var x = document.getElementById('bbb').value;
alert(x)
})