Jquery replacewith fade/animate?

$('#foo'). FadeOut("slow", function(){ var div = $("test2").hide(); $(this). ReplaceWith(div); $('#foo').

FadeIn("slow"); }) jsfiddle jsfiddle.net/9Dubr/1 Updated to fade in correctly.

$('#foo'). FadeOut("slow", function(){ var div = $("test2").hide(); $(this). ReplaceWith(div); $('#foo').

FadeIn("slow"); }); jsfiddle - jsfiddle.net/9Dubr/1/ Updated to fade in correctly.

Great works a treat, thanks! – Colin Mar 9 at 16:43.

Sorry I should have been more explicit, the new is actually different - it's loaded with ajax so what I really want is $('#foo'). ReplaceWith(data. Foo) - but with fades.

– Colin Mar 9 at 16:28 You can simply replace the html within the div with html() before fading in. I've revised my answer above. – Jason MacLean Mar 9 at 16:31.

This version will 'live' on ;) jsfiddle effort.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions