[Solved] How can I detect the last ajax call in a loop?
[ad_1] I assume a typo here, where e should be i… var isLastElement = e == diff.length -1; But anyway, don’t use the loop index. You will save yourself a lot trouble if you use a variable declared outside of the loop… And increment the value of this variable in the ajax callbacks. var callCount … Read more