Created
February 20, 2024 03:24
-
-
Save flowmar/8802476e3d60a1c8783aefb3114636de to your computer and use it in GitHub Desktop.
Execute a function when both ajax requests are complete. From http://api.jquery.com/jQuery.when/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.when( $.ajax( "/page1.php" ), $.ajax( "/page2.php" ) ).done( | |
function( a1, a2 ) { | |
// do something | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment