JSFiddle - React, Tailwind, and code Playground

HTML

<div id="dailyCount">
    <table>
        <thead>
            <th id="one">demo 1</th>
            <th id="two">demo 2</th>
            <th id="three">demo 3</th>
        </thead>
    </table>
</div>

CSS

th {
    border: 2px solid red
}

JavaScript

$(document).on("click", "#dailyCount table thead th", function () {
    alert("a");
});