Possible to call load() within a load() callback?
For example, I'm fetching content from a separate page and appending it with an animation, but I'd like the animation to wait for the new content to finish loading before firing.
Something like:
-
$('#content').load(url,function(){
$('img',this).load(function(){
$(this).fadeTo('slow',1);
});
});
Just wondering if this is possible solely with the load() function, as I'm limited to that by my current plugin needs. Thanks!