help with jQuery show and delay -


essentially want text fadein,delay 3 seconds , fadeout. following code fades in out immediately, wont fade in 3 seconds.

$('#temp').fadein('slow', function () {                         $('#temp').html(response);                     }).fadeout('slow').delay('3000'); 

you need chain them in right order:

$('#temp').fadein('slow', function () {             $('#temp').html(response);           }).delay(3000).fadeout('slow'); 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -