I’m trying to prepend a div and load content in it with AJAX but the div remains empty
$('#primary').fadeOut('slow', function(){
$('#primary').prepend('<div id="content"/>', function(){
$('#content').load(link+' #content', function(){
$('#primary').fadeIn('slow');
});
});
});
prependdoesn’t have a callback, it’s an immediate change. Try this: