gribbs100
01-16-2011, 10:19 PM
Hello guys,
I'm new to JQuery. Very new. I wrote some functions using callbacks. I wanted them to happen in sequence. the first 2 functions happen but the 3rd (#blackcontainer), does not happen.
#blackfill should animate, then when completed, #grid should animate, then when completed, #blackcontainer should animate.
Did I code this wrong?
$(function(){
$("#blackfill").animate({height:'toggle'},600,function(){
$("#grid").animate({height:'toggle'},500),function(){
$("#blackcontainer").animate({width:'toggle'},400)};
});
});
I'm new to JQuery. Very new. I wrote some functions using callbacks. I wanted them to happen in sequence. the first 2 functions happen but the 3rd (#blackcontainer), does not happen.
#blackfill should animate, then when completed, #grid should animate, then when completed, #blackcontainer should animate.
Did I code this wrong?
$(function(){
$("#blackfill").animate({height:'toggle'},600,function(){
$("#grid").animate({height:'toggle'},500),function(){
$("#blackcontainer").animate({width:'toggle'},400)};
});
});