Hi all , i have a problem. Say I have the following code jQuery("#scr").load("http://example.com/sample.html"); alert ("done"); I want the alert to display only after the div has loaded the remote link. Currently when i do this , alert displayes even before its loaded. Thanks !
ЗдраÑтвуй Hi, The .load() can take a callback to be fired on completion: jQuery('#scr').load('http://example.com/sample.html',function(){ alert ('done'); }); Code (markup):