title: How to get id of first element (form) in body using JQuery?
body: <p>Not much familiar with JQuery; I want to get id of form element in jquery which is located in following location</p>
  
  <pre><code>&lt;body&gt;
     &lt;div id="boxDialog"&gt; &lt;/div&gt;
  
    &lt;div class="container"&gt;
      &lt;div class="header"&gt;
         Many Tables and divs
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;form id="approval"&gt;&lt;/form&gt; 
  
   Jquery: : : 
  alert($("body.form").attr("id"));
  </code></pre>
  
  <p>Fiddle: <a href="https://jsfiddle.net/j32f9128/" rel="nofollow">https://jsfiddle.net/j32f9128/</a></p>