JSFiddle - React, Tailwind, and code Playground
by DinoMyte
HTML
<select id="select" name="se">
<!-- if this is chosen placeholder will be 'you have chosen option n1' !-->
<option value="1">option 1</option>
<!-- if this is chosen placeholder will be 'you have chosen option n2' !-->
<option value="2">option 2</option>
<!-- if this is chosen placeholder will be 'you have chosen option n3' !-->
<option value="3">option 3</option>
</select>
<input type="text" id="inp" name="choosen">
JavaScript
$('select').on("change",function()
{
$('#inp').val("you have chosen option n" + $.trim(this.value));
}).change();