I have a table with an id of Directorships and I want to add the class
bgHighlight to any cell with a value of 'D'. This code below works
fine for an entire table but I just want to apply this logic to a
single column of the same table rather than the whole table.  Thanks.

$('#Directorships tr').each(function() {
  $('td', this).each(function() {
        if ($(this).text() == "D")
                $(this).addClass("bgHighlight");
        });
});

Reply via email to