JSFiddle - React, Tailwind, and code Playground

by Zeljko Tadic

HTML

<table class="table-legend">
    <thead>
        <th>Column1</th>
    </thead>
</table>

JavaScript

$("table.table-legend").prepend('<caption class="edit-select"><a href="javascript:;">Select All - None</a></caption>');
$("table caption a").on("click", function(){
    alert("b");
});