Hello!
There is a table, there are several rows of data in it, each row has a title attribute with the row number in the table, as well as in this row there is a button for adding a row below:
<table class="data_sheet"> <tr class="headers"> <td nowarp>№</td> <td nowarp>Изменить</td> </tr> <tr class="content" title="1"> <td> <p>text</p> </td> <td> <p class="button" onclick="addPosition();" title="1"> Добавить </p> </td> </tr> </table> After adding a row, the onclick attribute changes to rmRequest , this function should delete the entire string when the button is pressed.
The question is: how to find out which button was pressed to delete a row?