JQuery load content and the slide at the same time -
below js
$('#maindiv').load('revolutionarycommunity.html', function() { alert('load performed.'); $('#maindiv').slidedown('slow'); });
here trying load html page , sliding it. maindiv have content when call function maindiv load revolutionarycommunity.html.
but here whole maindiv sliding down loaded html content. need loading , sliding @ same time, how can this?
if question right, following:
$("#maindiv").slidedown("slow", function () { $(this).load('revolutionarycommunity.html', function() { alert('load performed.'); }); });
Comments
Post a Comment