JSFiddle - React, Tailwind, and code Playground

HTML

<form>
    <p><select id="select">
      <option>Пункт 1</option>
      <option>Пункт 2</option>
      <option>Целевой пункт 3</option>
    </select></p>
    <p><textarea id="textarea" rows="10" cols="50"></textarea></p>
  </form>

JavaScript

function onchange1(e) {
    if (this.selectedIndex == 2){
        document.getElementById("textarea").value = "Нужное значение";  
    }
}

document.getElementById('select').onchange = onchange1;