This will hopefully be a simple one:
I have a div I want to slide into the screen when the page loads.
I’m trying to find out why this works:
$(function() {
$('.mydiv').slideDown(500);
});//END ONLOAD
But not this:
$(function() {
$('.mydiv').show('slide', { direction: 'down' }, 500);
});//END ONLOAD
Can anyone give me some advice? Thanks!
(ps: CSS is .mydiv {display:none;}
The Jquery API docs for the show method state that the show method defintions are as follows:
where:
the correct implementation using show would be