How to set background-color of the DataTable row including first column
How to set background-color of the DataTable row including first column
![ganeshdks](https://secure.gravatar.com/avatar/e778d007bf21d4a2f3c4c235f9615e09/?default=https%3A%2F%2Fvanillicon.com%2Fe778d007bf21d4a2f3c4c235f9615e09_200.png&rating=g&size=120)
How to set background-color of the DataTable row including first column of which the 3rd column contains a text.
I used Jquery :-
$(document).ready(function () {
$('tr:has(td:contains("Total"))').css("background-color", "Red"); // works for the complete row excluding first column
$("tr td:contains('Total')").each(function () {
$("tr td:contains('Total')").attr("style", "background-color:Red"); // doesn't work at all
});
});
But I could not get it working. Please help.