DatasetTicker module, no "javascript loop"

Hi there.

I have a datasetticker formated with a table and I colorize specific row with condition (a specific word in the dataset), via javascript box in module. It works fine but only for the first row. Is it possible to “loop” for the entire table ?

My javascript code call by a simple “myFunction();” in template :

function myFunction() {
if (document.getElementById(“keyword”).innerHTML==“Standby”) {
document.getElementById(“row”).style.color="#ff0000";
}
}

Thank you.

HI

im not a good programmer with Javascript, but if you test a “while” loop?

Greetings Torsten

Hi.

Thank you for your answer but I found a solution. It’s different but it work !

function myFunction() {
$(‘tr:contains(“Stanby”)’).css({color: “#ff0000”});
return;
}

Greetings.