mattquantic
Programmer
Hi, I have a function that highlights a cell using:
But, when I try to change the color of the text or bold it will not let me:
Is my syntax wrong or something?
M@?
Code:
function highlightTableCell( cellName , color )
{
document.getElementById( cellName ).style.backgroundColor=color;
}
But, when I try to change the color of the text or bold it will not let me:
Code:
function highlightTableCell( cellName , color )
{
document.getElementById( cellName ).style.backgroundColor=color;
document.getElementById( cellName ).style=font-weight='bold';
document.getElementById( cellName ).style.cursor='hand';
document.getElementById( cellName ).style.color='#ffffff';
}
Is my syntax wrong or something?
M@?