JSFiddle - React, Tailwind, and code Playground

by Town

HTML

<div class="tableNames">tn</div>
<div id="#tableContents">tc</div>

JavaScript

$(document).ready(function () {
    $('.tableNames').live('click', function (e) {
        alert("!");
        
    });
});

function getDBData(fn, someString, someText) {
    return "<table id='tableData'>
<tr class='tableHeader'>
<th>Modified</th>
<th id=col1>col1</th>
<th id=col2>col2</th>
<th id=col3>col3</th>
<th id=col4>col4</th>
<th id=col5>col5</th>
<th id=col6>col6</th>
<th id=col7>col7</th>
<th id=col8>col8</th>
<th id=col9>col9</th>
</tr>";
}