There are 200 buttons (so far only 4 to simplify their task). Each button, when pressed, should highlight a specific row in the table. But when you click on another button, the previous onclick should cancel its action. ID on the buttons and in the table will be recorded manually. The problem is that the number of buttons and rows in the table will be dynamic on each page.
<input type=button value="Π·Π΅Π»Π΅Π½ΡΠΉ" onClick="id1.bgColor= '#006400'"> <input type=button value="Π·Π΅Π»Π΅Π½ΡΠΉ" onClick="id2.bgColor= '#006400'"> <input type=button value="Π·Π΅Π»Π΅Π½ΡΠΉ" onClick="id3.bgColor= '#006400'"> <input type=button value="Π·Π΅Π»Π΅Π½ΡΠΉ" onClick="id4.bgColor= '#006400'"> <h3>Π’Π°Π±Π»ΠΈΡΠ° c ΡΠ°ΠΌΠΊΠ°ΠΌΠΈ</h3> <table class="brd"> <tr id='id1'> <th>ΠΠΌΡ</th> <th>Π€Π°ΠΌΠΈΠ»ΠΈΡ</th> </tr> <tr id='id2'> <td>ΠΠ°ΡΠΈΡΠ°</td> <td>ΠΡΠ°Π΅Π²Π°</td> </tr> <tr id='id3'> <td>ΠΠΌΠΈΡΡΠΈΠΉ</td> <td>ΠΠΎΠ»Π΅ΡΠ½ΠΈΠΊΠΎΠ²</td> </tr> <tr id='id4'> <td>ΠΠΌΠΈΡΡΠΈΠΉ</td> <td>ΠΠΎΠ»Π΅ΡΠ½ΠΈΠΊΠΎΠ²</td> </tr> </table>