I have a javascript function.Inside this function i have 3 ajax calls. How can i make sure that my another function executes after these ajax calls done?
function a(){
    for(var i=0;i<3;i++)
        $.post("somePage.php").done(function(){
            do stuff here...
        });
    return false;
}
function b(){
    //.....
}
will my function b execute after ajax calls done?
 
     
     
     
    