jeudi 16 avril 2020

only backgroundColor style in if function javascript is not working

 for(e=0;e<occs.length;e++){
    if(occs[e][0] == year && occs[e][1]==mon && occs[e][2]==dt){
    cls.style.backgroundColor = "rgba(100,240,100, 1)" ;
    cls.innerHTML += "<b>*</b>" ;
}else{
    cls.style.backgroundColor = "rgba(255,255,255, 1)" ;}; };

Aucun commentaire:

Enregistrer un commentaire