JSFiddle - React, Tailwind, and code Playground
by Jake
HTML
<span onchange="(function(e){document.querySelector('#x').innerHTML=e.target.value;})(e)"></span>
<select onChange="(function(e){ console.log(e.target.value) })()">
<option>Jkae</option>
<option>monique</option>
<option>caleb</option>
<option>Judah MItchell Paris</option>
</select>
<div id="x">
</div>
CSS
#x {
padding: 1em;
background: yellow;
color: black;
}
JavaScript
/* var s = document.querySelector('select')
s.addEventListener('change', e => {
console.log(e.target.value );
}) */