I have some datatables that I want to change the background color on a specific page, so add a style to change it:
table.display tbody:hover td{
background-color: red !important;
}
I do it this way but it only changes the color when the cursor is positioned in the tables. I'm doing it for css because jquery did not work for me. Try this way:
for (i = 0; i < 6; i++) {
$('td', newrow).eq(i).css("background-color", "#6600cc !important");
}
But nothing, there are no changes of color in the tables.