jookyboi
10/11/2013 - 3:28 PM

Execute a function when both ajax requests are complete. From http://api.jquery.com/jQuery.when/

Execute a function when both ajax requests are complete. From http://api.jquery.com/jQuery.when/

$.when( $.ajax( "/page1.php" ), $.ajax( "/page2.php" ) ).done(
function( a1, a2 ) {  
  // do something
});