I have a table that loads just fine. Each row has an ID matching the database. The last row in the table is there to insert a new row. When the user clicks the Add button the data is added to the database and the row is displayed in the table. Each row in the table contains a button for deleting that row. Here is the button markup:
There is a jQuery function which detects a click of this button by the class name delete-increment. It then deletes the item from the database and the table. The delete buttons work fine when the table is initially populated. However, when a new row is added and you click the delete button for that row it does not trigger the function. I did confirm that after adding a new row all the other delete buttons still work. The issue appear to be with just new rows added after the page load.
Here is the code used to insert the new row:
Anyone know why only the new rows added do not trigger the click function?