Good, I'd like you to help me, I'm doing in javascript so that a class can change color, but I do not know what I'm doing wrong I would like you to help me, this is my code:
Javascript:
<script>
$(document).ready(function () {
document.getElementsByClassName("colourButton").style.color = "#FF0000";
});
</script>
HTML:
<form id="form1" runat="server">
<div>
<table border="1">
<tr >
<th>nombre</th>
<th>apellidos</th>
</tr>
<tr class="colourButton">
<td >piero</td>
<td>Flores</td>
</tr>
</table>
</div>
</form>
I get this image: