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
Post a Comment