I have a div set to visibility: hidden in the CSS that I want to display later. Here is the jQuery I have so far, which isn't working:
$(document).ready(function() {
$('#start').click(function() {
$(this).fadeOut(1000, function() {
$('body').css('background-color','#999', function() {
$('.menu').fadeTo('slow',1);
});
});
});
});
The following should happen in order:
- User clicks '#start' and '#start' fades. (This happens.)
- The background color of the page turns from its original color to gray. (This happens.)
- The div '.menu' should fade in. (This does not happen.)
What am I doing wrong? If it makes a difference, '.menu' is filled only with a bunch of child divs.