Edit this page

up.element up.element.toggle(element, [newVisible])
JavaScript function

Changes whether the given element is shown or hidden.


Parameters

element Element
[newVisible] boolean optional

Pass true to show the element or false to hide it.

If omitted, the element will be hidden if shown and shown if hidden.