title: How to get data from a nested div
body: <p>i have the following html example</p>
  
  <pre><code>&lt;div class="list"&gt;
  &lt;div class="Teamlist"&gt;
  &lt;div class="Teamcontainer OPEN" dataid="73592"&gt;&lt;div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>i am trying to get the dataid from teamcontainer but it keeps on returning undefined.This is what i tried</p>
  
  <pre><code>if ($this.hasClass("list") &amp;&amp; $this.hasClass("Teamlist") &amp;&amp; $this.hasClass("Teamcontainer")) {
  
                      var ID = $this.parents(".Teamcontainer").attr("dataid");
  
   }
  </code></pre>
  
  <p>the above id just returns undefined. how do i get ID=73592? what am i doing wrong</p>