JSFiddle - React, Tailwind, and code Playground

HTML

<form>
    <select id="select">
        <option>JavaScript</option>
        <option>jQuery</option>
        <option>ECMASCript</option>
    </select>
</form>

<p><button id="show-result">Выбранный пункт &lt;select&gt;</button></p>

<p id="result"></p>

<!-- пример сайта know-online.com -->

JavaScript

var select = document.getElementById("select");

document.getElementById("show-result").onclick = function() {
    document.getElementById("result").textContent = select.options[select.selectedIndex].text;
}