I am working on a simple jquery animation where I have defined two functions as runit(); and runit2().
What I need is to execute runit2() only after runit() has finished execution but the problem is both seems to be executing at the same time.
I am including a rough fiddle here: http://jsfiddle.net/5444s/
Can anyone help please??
You can put your
runit2()call in theitem2.fadeOut()callback function. Asitem2.fadeOutis called at the end of yourrunit()function,runit2()will be executed afterrunit();Replace your
runit()function by :