JSFiddle - React, Tailwind, and code Playground

by der_robert

HTML

<select>
    <option>Wert1</option>
    <option>Wert2</option>
    <option>Wert3</option>
    <option>Wert4</option>
    <option>Wert5</option>
</select>

<span id="zeige_select_auswahl"></span>

JavaScript

$("select").on("change",function(){
    var str = $(this).find("option:selected").text();
    $("#zeige_select_auswahl").html(str);
});