making a link toggle between SlideDown and SlideUp (scriptaculous)
javascript, scriptaculous, slidedown, slideup
Solution
Use Effect.toggle.
Effect.toggle('element_id', 'slide');
Problem
The scriptaculous wiki has a demo (http://github.com/madrobby/scriptaculous/wikis/effect-slidedown) that shows the SlideDown effect in use. However I need to have the same link to slide down if a certain DIV is hidden and SlideUp if that DIV is showing. How do I achieve this? Thanks.