Reputation: 19857
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 great.
Thanks
Upvotes: 2
Views: 10766
Reputation: 9323
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);
Upvotes: 3