The effect methods in jQuery take an optional callback parameter. The
callback function is called when the animation is complete.

So you can do:

$divTarget = $(divTarget);
$divTarget.slideUp("slow", function() {
 $divTarget.children("div.middle").html(stuff);
 $divTarget.slideDown("slow");
});
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to