I have experience with HTML/CSS, for example I can make text turn red using the code
<table><tr><td style="color:#f00;">text</td>
.
However, I am struggling with JavaScript. When I try to change the color of a table cell using the code
tbl.rows[row].cells[col].style.color = "#f00"
, nothing happens. Can someone help me understand why this isn't working? Thank you.