I am needing to have a bit of text show up after my `each()` has completed all tasks within it. But it seems they are running async and the "done." displays too early. I have tried to use a delay, but it doesn't matter. And as you can see, I'm sending success and fail information to a modal for displaying which records were saved or failed. The 'done' needs to come after all `$.ajax` calls are complete.

```js
$(".QueueGrid tbody > tr").each(function () {
    dcn = "";
    if ($(this).find(".chkOtherSelected").prop("checked")) {
        claimnum = $(this).find("td:eq(2)").text();
        dcn = $(this).find("td:eq(5)").text();
        $.ajax({
            type: "POST",
            url: "Approval_Inbox.aspx/SaveNote",
            data: "{dcn:'" + dcn + "',note:'" + note + "'}",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            cache: false,
            timeout: 8000,
            beforeSend: function () {
                str = "- " + dcn + "<br />";
            },
            success: function (data) {
                _savedSucess += str;
            },
            error: function () {
                _savedFail += str;
            },
            complete: function (data) {
                $("#divMassMessage").fadeIn("fast");
                $("#divMassMessage").center();
                $('#MainContent_savedSucess').html(_savedSucess);
                $('#MainContent_savedFail').html(_savedFail);
            }
        });
    }
});
$(".saveComplete").html("done.");

```