Javascript Library.
Commands 0 |
---|
Hide any element.
_z(selector).hide();
Returns: Object _z(selector)
To show an element: Show element
<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.