Hello everyone,
I want to highlight a cell of a table depending on if its value is “yes” or “no”
I got an array by using
var test = $(‘table tr > td:nth-child(17)’);
Now I need to use the if method
if(test[i].innerHTML == ‘Yes’) {
test[i].style.backgroundColor ="#FCD";
};
But I cannot get the complete function.
How can I use for or forEach to get it working?
I am not an expert of js but I think this is a simple task for experts.
I need just a hint. Please.