title: Get the ID of node using YUI 3.3
body: <p>There is one accordian in YUI and I want element id of the element which height is more than 0px.</p>
  
  <p>Here is some part of code </p>
  
  <pre><code>&lt;div class="accordian"&gt;
   &lt;div id="item1" class="yui3-widget-bd"&gt;&lt;/div&gt;
   &lt;div id="item2" class="yui3-widget-bd"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and javaScript</p>
  
  <pre><code>YUI().use("node", function(Y) {
      Y.all('.yui3-widget-bd').each(function(node) {
  
          accHeight = node.get("offsetHeight");
          alert("this is height " + accHeight);
  
          if (accHeight &gt; 0) {
              alert("inside if");
              alert(node.get("ID"));
  
          }
          else {
              alert("in else condition");
          }
  
      });
  
  })
  </code></pre>
  
  <p>Instead of getting "Item1 " alert. I am getting "undefined"</p>
  
  <p><a href="http://jsfiddle.net/zWr7V/" rel="nofollow">Working example on JSFiddle</a></p>