JSFiddle - React, Tailwind, and code Playground
HTML
<select onChange="comprobar(this)">
<option>demo1</option>
<option>demo2</option>
</select>
JavaScript
function comprobar(ele){
alert(ele.value);
}
<select onChange="comprobar(this)">
<option>demo1</option>
<option>demo2</option>
</select>
function comprobar(ele){
alert(ele.value);
}