JSFiddle - React, Tailwind, and code Playground

by SirDerpington

HTML

<table cellpadding="25" cellspacing="30">
    <tr>
        <th>Test</th>
    </tr>
    <tr>
        <td>bla</td>
        <td>foo</td>
    </tr>
</table>
<input type="button" id="clickMe" value="Click">

JavaScript

$(function () {
    $('#clickMe').click(function () {
        $("table").removeAttr("cellpadding");
        $("table").removeAttr("cellspacing");
    });
});