jquery - Show a div for couple of seconds and then disappear automatically -


when page loads, div should appear 3 seconds , automatically disappear. i'm having trouble code @ moment. i'm using code below:

jquery("#infor").delay(6000).fadeout("slow"); 

my html is:

<div id="infor"> </div> 

but doesn't seem working. have idea why code not working?

is code within document.ready block?

$( document ).ready(function() {     $("#infor").delay(3000).fadeout("slow"); }); 

it works me: http://jsfiddle.net/ydu4z/


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -