I use this function to check the bottom part of my table cell and then later change its color.
function checkBottom(colIndex) {
var colorReport = returnColor(5,colIndex);
for (var row = 5; row > -1; row--) {
colorReport = returnColor(row,colIndex);
if(colorReport==='rgb(128,128,128)'){
return row;
}
}
}
It doesn't do anything unless I change the if
part to:
colorReport==='rgb(128, 128, 128)'
What's different between rgb(a,a,a)
and rgb(a, a, a)
?