JSFiddle - React, Tailwind, and code Playground

by Brian Duffey

HTML

<table>
    <tbody id="myTable">
        <tr class="oneRow">
            <td>Col 1</td>
            <td>Col 2</td>
        </tr>
    </tbody>
</table>

JavaScript

jQuery('body').delegate('.oneRow', 'click', function () {
    var thisRow = jQuery(this);
    jQuery('#myTable').append('<tr class="oneRow">' + thisRow.html() + '</tr>');
});