background-color only in Column
background-color only in Column

in DataTables
Hello, I put a condition in my script that depending on the status of the column, the background-color changes, but I only want the color of the column to change, not all the row, I am doing it in the following way,
if (data.cat_estatus.id_estatus ==2) {
$('td', row).css('background-color', '#f4d03f ');
Can somebody help me?
Thank you.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Try using:
Where the
2
is the column number.Kevin
Excellent!!! thanks a lot