I want to add a delete row button to the dynamically generated rows that clears the result of the row from the total.
This is the code in jsfiddle
this is what i tried
$(document).on("click", ".delete-row", function () {
$(this).closest('tr').remove();
row--;
calculate(elementID);
return false;
});
```