JSFiddle - React, Tailwind, and code Playground

by ronnjoe

HTML

<table>
    <tr>
        <td class="group">1234</td>
    </tr>
    <tr>
        <td class="notGroup">4567</td>
    </tr>
</table>

JavaScript

//Checking for Closest Td and check's for hasClass

$("table tr td").live("click",function(evt){
    if(!$(this).closest('td').hasClass('group')){
        console.log("yes it dont  has");
    }
});