JSFiddle - React, Tailwind, and code Playground

by vonDy2791

HTML

<table id="table1">
    <tr>
        <td>
            <input type="text" id="text1" size="30">
        </td>
    </tr>
    <tr>
        <td>
            <input type="text" id="text2" size="30">
        </td>
    </tr>
</table>
<input type="button" value="button" id="but1">

JavaScript

$('#but1').click(function () {
    //$('#table1 :text').blur(function () {
        //var h = 'test';
        //$(this).val(h + $(this).val());
    //});
    var txt = $('#text1').val();
    $('#text2').val(txt);
});