I have a table and i am wanting to fade the row out, then remove it (which is working fine)
after it is remove, i am summing up all the columns and updating the total that bit isn't working. it is summing up before the row is removed
how do i make this run synchronisly ?
$("#tr_invoice_" + id).fadeOut("slow", function() {
$("#tr_invoice_" + id).remove();
tot = $("[name^=amount]").sum();
confirm("got tot: " + tot);
});
After reading @pulses comment, i went and changed things around about and removed the amount of the "removed row" from from the sum manually, but that started giving a total less 2 x current row amount.
So i reverted it back and changed the confirm to a $("#tag").html(tot). and it started working fine, so i am not sure if it was a syntax error on my part or the confirm had something to do with it, but either way it is working now
so in light of that, should i delete this question, or leave as is???