Hi all,
i have strange problem with the delay function here using the html function with it.
I set a html text by using $( '#element').html( 'Hello World');
After setting the text i want to get this text disappear in 3 seconds.
So next line i wrote:
$('#element').delay( 3000).html( ' ');
This one doesnt work, it sets the html to   without waiting the 3 seconds, it looks like jquery is skipping the delay function. Using this with fadeOut for example works fine. I guess this has something to do with this queue thing in delay.
But why doesnt this work. Its a pretty simple, wait 3 seconds then run the html function.
Could anybody advise? Thanks.
PS: For your info, i use jQuery 1.4.2