DOM要素「div」を削除する次の関数があります。
$('#emDiv').on("click", ':button[data-emp-del="true"]', function (evt) {
evt.preventDefault();
// Get Row - "emp0" or "emp1" etc ...
var rowId = "#" + $(this).data('emp-id');
// Remove the DIV
$(rowId).fadeOut('normal', function () {
$(this).remove();
});
// The results below returns even the one that was removed
// $('div[id^="emp"]')
return false;
});
残りのDIVをループしたいので、上記のDIVを即座に完全に削除する方法はIDを変更します。
ありがとう