jQuery .load() with fadeIn effect

前端 未结 6 505
情话喂你
情话喂你 2020-12-06 09:27

I\'m trying to load #content of a url via AJAX using jQuery within #primary. It loads but doesn\'t fadeIn. What am I doing wrong?

$(\'.menu a\').live(\'clic         


        
6条回答
  •  无人及你
    2020-12-06 10:16

    Actually I was able to do it by applying the effect to the wrapper div instead...

    $('#primary').fadeOut('slow', function(){
        $('#primary').load(link+' #content', function(){
            $('#primary').fadeIn('slow');
        });
    });
    

提交回复
热议问题