[Solved] how do you run two javascript functions independently


You have to run the second function after the first asynchronous request is done.

At the end of your vcenter1, add:

return req;

Then modify your code to:

$('a[href*="vmware"]').on('click', function () {
    vcenter1().then(vcenter2);
});

7

solved how do you run two javascript functions independently