I call ajax jquery function inside .each loop, and I want to do an action just when all the ajax calls inside the loop finish and success.
$(\".checked-box\"
Deferreds can make your work simpler.
var deferreds = $('.checked-box').map(function(i, elem) {
return $.ajax(params);
});
$.when.apply(null, deferreds.get()).then(function() { ... });
Hope this should work.
The concept is
$.when(
$.ajax( "1" ),
$.ajax( "2" ),
$.ajax( "3" )
).then( successFunc, failureFunc );