Hide search results until load and then fadeIn?
This code below fades out the first results then fades in too开发者_如何学Python early an the next results just appear anyway
$('.content .sub_cont').load('superfetch.php?val=' + $('.searchInput').val(), hideLoader(function() { $(this).fadeIn(1500); }));
try
$('.content .sub_cont').load('superfetch.php?val=' + $('.searchInput').val(), hideLoader(function() { $(this).delay(1500).fadeIn(1500); }));
How about this?
$('.content .sub_cont').hide(0);
$.get('superfetch.php?val=' + $('.searchInput').val(), function(data){
$('.content .sub_cont').html(data);
$('.content .sub_cont').hide(0); //Sometimes it will show it when changing the HTML
$('.content .sub_cont').fadeIn(1500);
});
精彩评论