Widget:ShowHide

// Credit: http://snipplr.com/view/3739/jquery-showhide/ $(document).ready(function{ $('#{@{button}@}').show; $('#{@{hidden}@}').hide; $('#{@{button}@}').toggle(function{$('#{@{hidden}@}').slideDown('slow');},function{ $('#{@{hidden}@}').slideUp('slow'); }); return false;}); See Sandbox for an example. Arranges so that the element named in argument "button" shows/hides the element in argument "hidden". For example:

click me Revealed! Gives: click me  Revealed!