JSFiddle - React, Tailwind, and code Playground

by makaksel

HTML

<select id="bathroom" >
        <option value="https://www.google.ru/"> Гугл</option>
        <option value="https://www.yanedx.ru/">Яндекс</option>
  </select>
<a class="link" href="#"> Show result</a>

JavaScript

$(document).on("change", "#bathroom", function() {
  $(".link").attr("href", this.value)
})