Wednesday, January 28, 2009

[jQuery] Re: HELP!!! wait for fade out before replacement div fades in

simply do the fade in in the finished callback of the fade out

$("a.linkclass").click(function() {
var next = $($(this).attr("href"));
$('.msg_body').fadeOut("fast", function(){
next.fadeIn("fast");
})
});


by(e)
Stephan

No comments: