I am new to this programming, I need your help with a question, I have this html:
<td>{{data.macEntra}}</td>
<td>{{data.macSale}}</td>
<td>{{data.paquetes}}</td>
<td>{{data.perfil}}</td>
<td>{{data.ciudad}}</td>
<td>{{data.proceso}}</td>
<td>{{data.accion}}</td>
<td id="prueba">{{data.horagestion}}</td>
<td>{{data.producto}}</td>
<td>{{data.tipoEquipo}}</td>
<td>{{data.remite}}</td>
And I have another file in JS in which there is a validation of time and when a condition is met I need to change the color to the background of <td id="prueba">{{data.horagestion}}</td>
but I do not know how to do it.
This is the code in the JS:
TV.forEach( function(valor, indice)
{
var diferencia=new Date(js_yyyy_mm_dd_hh_mm_ss())-new Date(TV[indice]);
if (diferencia > 900000)
{
console.log("Alerta!");
}
});
Someone who can guide me would appreciate it.
Best regards