iEntry 10th Anniversary Photoshop Illustrator

Using Script.aculo.us to Toggle a DIV

Ajax tutorial submitted by gotfoo 1877 days ago

This is a nice little trick that I am constantly going back to Script.aculo.us to look up. This Hides/Shows (Toggles) a DIV (or any element) with the click of a link using the Script.aculo.us Effect.toggle('ELEMENT','EFFECT') function. Script.aculo.us has 16+ Combination Effects but only a few can be used with Toggle.

Continue Reading 2 comments

Comments

admin said..

I will use this as a definite resource. It gets right do to the point.

written 1876 days ago ago

gotfoo said..

I've updated it with persistence between page loads: http://you.gotfoo.org/using-scriptaculous-to-toggle-a-div-ii/

written 1869 days ago ago




Subscribe