JSFiddle - React, Tailwind, and code Playground

by brentmn

HTML

<table id="mytable2" width="100px"  border="0" cellspacing="0" cellpadding="0" style="padding-top:5px">
    <tr class="st" name="st">
    <td width="80px" style="text-align:center; padding-top:3px;">
    <input type="Text" id="newst" name="newst" maxlength="25" style="width:80px; font-family:Tahoma; font-size:11px;"></td>
    <td width="20px">
    <input type="submit" name="plus" id="plus" value="+" style="width:20px; text-align:center;"></td>  
    </tr>
</table>

JavaScript

$("#plus").click(function() {
    $('#mytable2 tbody>tr:last').clone(true).insertAfter('#mytable2 tbody>tr:last');
    $('#mytable2 tbody>tr:last #st').val('');
    $('#mytable2 tbody>tr:last #newst').val('');
    $('#mytable2 tbody>tr:last #plus').val('+');
    return false;
});