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

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -