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) {
    var t = document.getElementById("textarea");
    if (this.selectedIndex == 2 && t.value == ''){
        t.value = "Нужное значение";  
    }else{
    	t.value = "";  
    }
}

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