JSFiddle - React, Tailwind, and code Playground

HTML

<select id="slcFoo">
    <option value="1"> valor 1 </option>
    <option value="2"> valor 2 </option>
    <option value="3"> valor 3 </option>
    <option value="4"> valor 4 </option>
</select>

JavaScript

//here you can get the text selected in the option
$('#slcFoo').on("change", function(){
    alert($('#slcFoo option:selected').text());
});

//here you can get the value selected
$('#slcFoo').on("change", function(){
    alert($('#slcFoo').val());
});