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
Just this:
$('.element').load('file.html',function(){}).hide().fadeIn();
Or to add this behaviour as default in the load() function:
$.fn.load_=$.fn.load; $.fn.load=function(){ return $.fn.load_.apply(this,arguments).hide().fadeIn(); }