I add with jQuery dynamically on click new rows to my table, on the other hand I have a function which can remove rows on button click. My problem that dynamically added rows cannot be deleted if I try to delete after when I added.
//adding new row to table
$('button#addRow.btn').click(function(e) {
e.preventDefault();
var rowCount = $('#feeds tr').length;
$('#feeds > tbody:last').append(//here comes tr html)};
//removing rows from table
$("tr td .delete").on("click", function(e) {
e.preventDefault();
$(this).closest("tr").remove()
});