YUI 3.x Home -

YUI Library Examples: Node: Showing and Hiding

Node: Showing and Hiding

This example shows how to show and hide Node instances.

lorem ipsum dolor sit

Showing a Node

By default, Node instances are hidden using the CSS display property. Calling the show method displays the node.

  1. Y.one('#demo').show();
    Y.one('#demo').show();

Hiding a Node

The opposite of show, the hide method sets the node's CSS display property to none.

  1. Y.one('#demo').hide();
    Y.one('#demo').hide();

Copyright © 2011 Yahoo! Inc. All rights reserved.

Privacy Policy - Terms of Service - Copyright Policy - Job Openings