Bug Tracker

Opened 11 years ago

Closed 11 years ago

#3246 closed bug (invalid)

Effects with appends or htmls.

Reported by: Nile Owned by:
Priority: trivial Milestone: 1.3
Component: core Version: 1.2.6
Keywords: Cc:
Blocked by: Blocking:

Description

If you do something like this:

$(document).click( function (){
$("p").fadeOut("fast");
$("p").html("Text, of course different text. :)");
$("p").fadeIn("slow");
});

It changes the HTML before it fades out.

Change History (5)

comment:1 Changed 11 years ago by Nile

I hope someone can help.

comment:2 Changed 11 years ago by cloudream

$("p").fadeOut("fast").html("Text, of course different text. :)").fadeIn("slow");

or

$("p").fadeOut("fast",function(){$(this).html("Text, of course different text. :)");}).fadeIn("slow");

comment:3 in reply to:  2 Changed 11 years ago by Nile

Replying to cloudream:

$("p").fadeOut("fast").html("Text, of course different text. :)").fadeIn("slow");

or

$("p").fadeOut("fast",function(){$(this).html("Text, of course different text. :)");}).fadeIn("slow");

Thank you.

comment:4 Changed 11 years ago by Nile

Oh, and the first one doesn't work. But that second one is great!

comment:5 Changed 11 years ago by flesler

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.