How do I add a delete button to a table in HTML?
Add a Delete Button to Each Row
Modify the productAddToTable() function (Listing 4) to include a button control as you add each row of data. In the JavaScript you write to build the <tr> and the <td> elements, add one more <td> that includes the definition for a <button> control.