I have several Javascript functions and one button to trigger them all together. Some of the functions depend on the content generated by a previous function. The issue I have is that some functions are not triggered or run correctly because the previous one isn't completed yet (most of them are ajax calls). So how do I make sure that a function is triggered when the previous one is completed?
The topics I found here were to complex for me to understand or just didn't provide me an answer.
function CallAllFunctions(){
function1();
function2();
function3();
}
Thank you very much in advance!