demo
08-01-2003, 01:15 PM
ok say you hav this simple table:
<table>
<tr>
<td>Row1 Cell1 here</td>
<td>Row1 Cell2 here</td>
</tr>
<tr>
<td>Row2 Cell1 here</td>
<td>Row2 Cell2 here</td>
</tr>
</table>
ok now what is the code to access one of those cells. what i want to do is when a button is clicked, so a function started, row1 cell2 background colour changes.
i know that this part changes the colour:
.........style.backgroundColor="your color";
but i dont know the "....." bits, can anyone help?????
<table>
<tr>
<td>Row1 Cell1 here</td>
<td>Row1 Cell2 here</td>
</tr>
<tr>
<td>Row2 Cell1 here</td>
<td>Row2 Cell2 here</td>
</tr>
</table>
ok now what is the code to access one of those cells. what i want to do is when a button is clicked, so a function started, row1 cell2 background colour changes.
i know that this part changes the colour:
.........style.backgroundColor="your color";
but i dont know the "....." bits, can anyone help?????