Div Appear After 5 Seconds Jquery
I'm having problems getting a div to appear using jquery after 5 seconds.
right now I was using
$(document).ready(function() { $("#message").delay(delay).fadeIn(5000); });But it's not working (#message being the name of the div serounding the content I'd like to show)
If anyone could help me get it working that would be gre开发者_高级运维at.
Thanks
Is there a delay
variable defined that you are passing into the delay
function? What you pass to delay should be how long to wait until doing the next function. I'd think you'd want something like this:
$('#message').delay(5000).fadeIn(5000);
Why is it not working? Don't forget to set the delay!
精彩评论