I have buttons inside the table, inside table button is clicked want to change the background color of that button and other buttons on same color
I tried using jquery like below
$('#bt1').click(function() {
$('#bt1').css('background', 'red');
});
but it works for one button only
<table id="abcd">
<tr>
<td><button class="cellGreen" id="bt1"><font>HOME</font></button></td>
<td><button class="cellGreen" id="bt2"><font>PROJECT</font></button></td>
<td><button class="cellGreen" id="bt3"><font>TEST</font></button></td>
<td><button class="cellGreen" id="bt4"><font>Help</font></button></td>
</tr>
</table>
<button id="btdffd1"><font>Other Buttons</font></button>
<button id="btdffd1"><font> Buttons</font></button>