Belgin Fish
Belgin Fish

Reputation: 19857

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 great.

Thanks

Upvotes: 2

Views: 10766

Answers (2)

gblazex
gblazex

Reputation: 50137

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

Upvotes: 1

rosscj2533
rosscj2533

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

Related Questions