Estou querendo coloris uma linha inteira de uma tabela, se a respectiva coluna dessa linha tiver algum texto, há tres situações possiveis: 1. o texto em si, 2. campos com um "-", 3. campos sem nada. A coluna referente é a 9, campo observação, e tentei da seguinte forma , sem exito: (function($) { $(document).ready(function() { $('#result_list tr:nth-child(9)').each(function() { if ($(this).text() != '-') { $(this).css({ "background-color": 'yellow', "color" : "black" }); } if ($(this).text() != '') { $(this).css({ "background-color": 'yellow', "color" : "black" }); } }); }); })(django.jQuery); Continue reading...