JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
<title></title>
<script>
function OnChange(value) {
var mySelect = document.getElementById('mySelect');
alert(value.value);
alert(mySelect.options[value.selectedIndex].innerText);
}
</script>
</head>
<body>
<select id="mySelect" onChange="javascript: OnChange(this)">
<option value="v">Volvo</option>
<option value="s">Saab</option>
<option value="m">Mercedes</option>
<option value="a">Audi</option>
</select>
</body>
</html>