I have a JavaScript function that makes two consecutive Ajax requests using jQuery. I want to make sure that the first request has loaded before the second function is call
An example implementation:
function callback() {$('div#second_ajax_output').load('http://www.google.com');} $('div#first_ajax_output').load('http://www.yahoo.com',callback);