2
votes

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

2
Can you show the HTML chunk containing the DIV you are trying to show?KingErroneous

2 Answers

3
votes

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);
1
votes

Why is it not working? Don't forget to set the delay!