I have an animation set to slide a DIV down when the DOWN link is clicked. I’d like to have the down link replaced by an UP link when the animation is ended so that the DIV can be returned. The JQuery to animate the DIV back to its starting position is set. The only thing I am having difficulty with is switching between the Down and Up DIVs.
Here’s the code http://jsfiddle.net/pC6fC/20/
You could specify the callback to be run once the animation is complete, like so:
I also changed
visibility: hiddentodisplay: noneon your CSS.See the Fiddle.