I'm trying to color rows based on "Status" which can be Red/Green. Using dynatable to generate table rows based from JSON data.
The problem is that whenever I call the following code from dynatable, it always gets overwritten by dyntable.process();
$('#mytable tr td').each(function() {
if ($(this).text() == 'Red') {
$(this).closest('tr').css('background-color', '#f00');
}
});
My index.php: http://pastie.org/10389654
My index.js: http://pastie.org/10389656