title: How to get the id name of the Node?
body: <p>I have a <code>div</code> tag as follows:</p>
  
  <pre><code>&lt;div id="DataEntryForm" style="position:absolute; left:100px;top:175px;width:350px;  z-index:2;background-color:yellow; visibility:hidden;border-top-color: black;"&gt;
      &lt;table id="DataEntryFormTable" style=" width:100%" style="margin-top: -50px;"&gt;
          &lt;tr&gt;&lt;td&gt;&amp;nbsp;Build Name&lt;/td&gt;&lt;td&gt; &lt;input type="text" id="BuildName" name="BuildName" value="" /&gt;&lt;/td&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;td&gt;&amp;nbsp;Build Description&lt;/td&gt;&lt;td&gt; &lt;input type="text" id="BuildDesc" name="BuildDesc" value="" /&gt;&lt;/td&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;td&gt;&amp;nbsp;Software Details&lt;/td&gt;&lt;td&gt; &lt;input type="text" id="SoftwareDetail" name="SoftwareDetail" value="" /&gt; &lt;/td&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;td&gt;&amp;nbsp;Hardware Details&lt;/td&gt;&lt;td&gt; &lt;input type="text" id="HardwareDetail" name="HardwareDetail" value="" /&gt; &lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
          &lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  &lt;input type="button" value="Save" onclick="saveRecord()" /&gt;&lt;/td&gt;
              &lt;td&gt; &lt;input type="button" value="Cancel"  onclick="cancelOperation()"/&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;br&gt;
      &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to load the values from the database to the input type text. So, I need to get the id of each node in order to match with my json value and node id and to assign the value to it. I'm trying with the following to achieve this. But, I cannot get the id value. Anyone, please help me out on this. Thanks .. </p>
  
  <pre><code>var nodes = deform.childNodes;
  index =0;
  
  // Load the first record in the collection.
  // It is expected to have only one object in JS Object collection
  var dbRecord= dbRecords[0];
  
  while (index &lt; nodes.length)
  {
      if(nodes[index].type=="text")
      {
          nodes[index].value = dbRecord[nodes[index].id];
      }
  
      index++;
  }
  </code></pre>