I have some jQuery slideDown problems.
The first time I click on my slideDown it doesn't animate, it just goes from hidden to visible. But every subsequent click will animate.
This is the code I'm using:
$('#open').click(function() {
$('#hideWrapper').slideDown('fast', function()
});
});
$('#close').click(function() {
$('#hideWrapper').slideUp('fast', function() {
});
});
I think I should use this code because it cleaner but it wont work at all:
$('#open').click(function() {
$('#hideWrapper').slideDown('fast', function()
});
$('#close').click(function() {
$('#hideWrapper').slideUp('fast', function() {
});
both of them works fine in jsfiddle:
Slides down on first click and all, am I not loading jQuery as I should? onDomReady problem?
Thank you in advance for any help you can provide.