I am looking to apply CSS to a dynamically generated div ID.
var status = var status = item.down().next().innerHtml();
if(status == "test")
{
var c = 'item_'+i ;
c.style.backgroundColor = 'rgb(255, 125, 115)';
//'item'+ i.style.backgroundColor = 'rgb(255, 125, 115)';
}
In this case, "item_" + i represents dynamic IDs for each row such as item_1, item_2, item_3, and so on. I want to add CSS to specific rows, like item_1 and item_3 among others.
How can I achieve this?