UnderZ

Javascript Library.

Hide an element.

Hide any element.


Hide element

_z(selector).hide();

Returns: Object _z(selector)

To show an element: Show element


Examples

<button id="button">Button !</button>
<button id="buttonHide">Hide button</button>
<button id="buttonShow">Show button</button>

<script>
// bind click event by element id
_z("#buttonHide").click(function () { 
	// hide element
	_z("#button").hide();
});

// bind click event by element id
_z("#buttonShow").click(function () { 
	// show element
	_z("#button").show();
});
</script>

Recommended: bind events in .ready() to execute the event when the document is fully loaded.