I have a loop and I want it to run when ajax ends everytime in the loop.
Is that possible?
for (var i=1;i<20;i++){
if (keepruning = 1) {
keepruning = 0;$.post( "getname.php", { id: myarr[i] } ) .done(function( data ) { keepruning = 1 });
}
This is as close as I got... and this doesn't work.
Any help would be very much appriciated;