JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<tr class="none"><td>value</td><td>value</td></tr>
<tr class="none"><td>value</td><td>toto</td></tr>
</table>
CSS
tr{
background:#b8cbe3;
}
tr.active {
background:#F00;
}
JavaScript
$('table tr').each(function() {
var val = $(this).find('td').first().html();
var self = this;
$(this).find('td').each(function(){
//alert(val+","+
if ($(this).html()!=val) {
$(self).addClass('active');
}
});
});