title: How To Read Input Fields From A Fieldset In JavaScript
body: <p>I have this Fieldset: </p>
  
  <pre><code>&lt;fieldset id="myFieldset" &gt;
    &lt;input type="hidden" name="username" value="Testing"&gt;
  &lt;/fieldset&gt;
  </code></pre>
  
  <p>I tried to read the input value of the fieldset like this in javascript:</p>
  
  <pre><code>function myFunction() {
      var x = document.getElementById("myFieldset");
      console.log("The fieldset elements: ", x);
  
      var data = x.getElementsByTagName("username");
  
      console.log("The googleData elements: ", data);
  }
  </code></pre>
  
  <p>But I'm not able to get the input section of the field set.</p>