I have something like this:
-HTML-
<table>
<tr class="x" onMouseOver="light(this)">
<td>
<a href="x">Link</a>
</td>
<td>
Text
</td>
</tr>
</table>
-CSS-
.x a{
color: black;
}
-Javascript-
function light(x){
x.style.color="red";
}
Now, the function works correctly, but my a tag doesn't changes his color. Is there a way to make Javascript modify the attribute color of the CSS rule .x a?