JSFiddle - React, Tailwind, and code Playground

HTML

<select id="select">
    <option value="1">1</option>        
        <option value="2">2</option>  
</select>
<table>
    <tr>
        <td id="td1"><input id="input" type="text" value="я поле в 1 ячейке"></td>
        <td id="td2"></td>
    </tr>
</table>

CSS

body {padding:15px;}
table{width:100%;}
td {
    border:3px solid #000;
    width:50%;
    padding: 5px;
    background:red;
}

JavaScript

(function(){
document.getElementById("select").onchange = function(){
    document.getElementById("td" + this.value)     .appendChild(document.getElementById("input"));
    };
})();