How to hide a button in a row?

How to hide a button in a row?

Hi,

I am populating rows from MySQL and assigning a data-id to every row in order to allow user to delete the specific row. All are ok so far... Now, I want to hide the imgDelete for the choosen row only. I tried to hide() but it's hiding the imgDelete for all rows because all has the same name.

Here is my row:

  1. <td data-id='" . $savanna_mysql_row["order_basket_item_guid"] . "' style='vertical-align: top; width: 25px; border-bottom: 1px solid black; padding: 10px; text-align: left;'><img class='linkDelete' src='images/delete.png' style='cursor: pointer;'></td>;


Thanks,