I was wondering if the is any way to wait until the fadeOut is complete before the fadeIn commences, as when i run the following code, it places one div under the other, the
The fadeOut function has a callback that it executes when the animation is done:
$('.sidebarform').fadeOut('slow', function() { $('.sidebarsuccess').fadeIn('slow'); });