I Have the JQuery code below. Basically trying to find the empty string in a td tag and add css to the tr tag, but it adds css to ALL rows not the row that has the empty string. Thank you in advance.
$('#mytable > tbody > tr').each(function(){
var $nthis = $(this);
$('td:first-child').each(function() {
var $firsttd = $(this);
console.log($firsttd.text());
});
//back in the <tr> level
if ($firsttd.text() == "")
$nthis.css('border-top','solid 2px blue');
}); //end of main func