Reputation: 25
I have a jquery function to toggle a div class, is it possible to have the "toggle" combined with a "fadein" effect?
function showDiv() {
$("#mydiv").animate({
"height": "toggle"
}, {
duration: 300
})
}
Any help would be appreciated
Upvotes: 0
Views: 2489
Reputation: 87073
$("#mydiv").animate({
"height": "toggle"
}, {
duration: 300
}, function(){
$("#mydiv").fadeIn();
}).
Upvotes: 0