title: Getting the id of a div which is being displayed
body: <p>I have the following HTML code:</p>
  
  <pre><code>&lt;div id="skills"&gt;
      &lt;div class="items" id="items1" style="display:none"&gt;1&lt;/div&gt;
      &lt;div class="items" id="items2" &gt;2&lt;/div&gt;
      &lt;div class="items" id="items3" style="display:none"&gt;3&lt;/div&gt;
      &lt;div class="items" id="items4" style="display:none"&gt;4&lt;/div&gt;
      &lt;div class="items" id="items5" style="display:none"&gt;5&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I need to access the <code>div</code> which is being displayed and get it's <code>id</code>.
  Please let me know how can I do this ?</p>