0
How do I change the <td> color when I click on the cell ?
3 odpowiedzi
+ 5
<td onclick="this.style.color='red'">...</td>
Obviously, if you was meaning 'background' color use this.style.backgroundColor or any css property ^^
+ 3
Same, but applied on <tr> element...
0
And what about changing the color of the entire row?