Skip to main content

Bug Tracker

Side navigation

#3246 closed bug (invalid)

Opened August 12, 2008 02:08PM UTC

Closed August 12, 2008 05:46PM UTC

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.

Attachments (0)
Change History (5)

Changed August 12, 2008 02:09PM UTC by Nile comment:1

I hope someone can help.

Changed August 12, 2008 02:12PM UTC by cloudream comment:2

$("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");

Changed August 12, 2008 02:34PM UTC by Nile comment:3

Replying to [comment:2 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.

Changed August 12, 2008 03:01PM UTC by Nile comment:4

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

Changed August 12, 2008 05:46PM UTC by flesler comment:5

resolution: → invalid
status: newclosed