Question : Help using .delay

Can anyone show me the syntax to achieve the following please?

1. Set text of an element.  I've got this bit already using the following code...

       
1:
$("#mySpan").text("Some text...!");


2. After a delay of 3 seconds, fade out the element

Here's my attempt, which fails with a 'delay is not a function' error:

       
1:
$("#mySpan").text("Some text...!").delay(3000).fadeOut(2000);

Answer : Help using .delay

Notes:
- delay() exists in jQuery 1.4+ only
- delay() works for in-between animations only

Try:
1:
$("#mySpan").text("Some text...!").show().delay(3000).fadeOut(2000);
Random Solutions  
 
programming4us programming4us