$(function() {
        $("#message_1").clone().removeClass("hidden").appendTo($("#message"));
        $("span.text1").click(function() {
                
$("#message").empty().html($("#message_1").clone().fadeIn("normal"));
                return false;
        });
        $("span.text2").click(function() {
                
$("#message").empty().html($("#message_2").clone().fadeIn("normal"));
                return false;
        });
});
>From the script above, it works fine, but what I wanna do is to fade out the
current element first, then the new element fades in afterwards. How to work
it?

Thank you
-- 
View this message in context: 
http://www.nabble.com/How-can-I-switch-elements-by-fades--tp14832714s27240p14832714.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to