JSFiddle - React, Tailwind, and code Playground

by Patrick Gordon

HTML

<script src="http://momentjs.com/downloads/moment.js"></script>
<table>
    <tr>
        <td class="celltocheck">08:00</td>
    </tr>
    <tr>
        <td class="celltocheck">11:01</td>
    </tr>
</table>

CSS

.red {
    background-color: red;
}

JavaScript

var myTimer = setInterval(function () {
            $('.celltocheck').each(function () {
                if (moment().format('HH:mm') >= $(this).text().trim()) $(this).parent().addClass('red');
            });
        }, 1000);