I am looping into html tables cell and I would like to check the cells color if it is equal to a specific color code.
if I alert 'cell.style.backgroundColor' I get the result of rgb(0,0,0) But if I check it like this :
if(cell.style.backgroundColor=="#000")
{
alert("ok");
}
or this one :
if(cell.style.backgroundColor=="rgb(0,0,0)")
{
alert("ok");
}
I always get false.
Any ideas?