Is easier to read as en `.each` loop. Using `tableContainer.find(".check-one:checked").closest(".replace-row").each(function () { ... })`. You can use `$(this)` inside for the current element.