JSFiddle - React, Tailwind, and code Playground

HTML

<table>
    <tr>
        <td>Reset by: </td>
        <td>
            <select name="resetType" id="resetType">
                <option value="email" selected>Email</option>
                <option value="phone">Phone's Number</option>
                <option value="username">Username</option>
            </select>
        </td>
    </tr>
    <tr>
        <td id="type"></td>
        <td><input type="text" name="type"/></td>
    </tr>
</table>

JavaScript

$('#resetType').on('change', function () {
        $('[name*="type"]').val($(this).find('option:selected').val());       
    });