title: how to know input field is belong to which section?
body: <p>I have a form with differenct section ,and each section contain a different Input , each section has section id which is my primary key to update related data. 
   when user click on submit button i call javascript function "Set_Data()" to process my form data,at this function i need to know each field is belong to which section , 
  would you please advise me what is the best soulution ?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form id="APIFORM"&gt;
  
      &lt;div class="inner-wrap" id="SECTION1"&gt;
          &lt;label&gt;Your Full Name &lt;input type="text" name="ABC" /&gt;&lt;/label&gt;
          &lt;label&gt;Address &lt;textarea name="GHI"&gt;&lt;/textarea&gt;&lt;/label&gt;
      &lt;/div&gt;
  
      &lt;div class="inner-wrap" id="SECTION3"&gt;
          &lt;label&gt;DRAWERSTATUS &lt;input type="text" name="JHK" /&gt;&lt;/label&gt;       
      &lt;/div&gt;
   
      &lt;div class="inner-wrap" id="SECTION3"&gt;
          &lt;label&gt;Password &lt;input type="password" name="OPL" /&gt;&lt;/label&gt;
          &lt;label&gt;Password &lt;input type="password" name="UTY" /&gt;&lt;/label&gt;
      &lt;/div&gt;
  
      &lt;div class="button-section"&gt;
       &lt;input type="submit" name="Sign Up" onclick="Set_Data();" /&gt;
      &lt;/div&gt;
  &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Thanks   </p>