title: javascript code not working with html script
body: <p>hi guys I just begin to learn javascript recently and I came across an issue, when I enter a "10" as the first input element and click submit, it should print a "10" at the bottom of the html page, but instead it prints nothing.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;head&gt;
  
    &lt;form action="" method="POST" id="info"&gt;
  
        &lt;br&gt;Age:&lt;br&gt;&lt;label&gt;
          &lt;input name="age" id="age" type="text" placeholder= "enter your age" /&gt;
        &lt;/label&gt;
  
        &lt;br&gt;Sex:&lt;br&gt;&lt;label&gt;
          female&lt;input name="female" id="female" type="checkbox"  /&gt;|
          male&lt;input type="checkbox" name="male" id="male"   /&gt;|
        &lt;/label&gt;
  
        &lt;br&gt;weight:&lt;br&gt;&lt;label&gt;
          &lt;input type="text" name="weight" id="weight" placeholder="enter your weight in kg"  /&gt;   
        &lt;/label&gt;
  
        &lt;input type="submit" form="info" value="Submit" onclick="validation()"/&gt;
    &lt;/form&gt;
    &lt;div id="div1"&gt; &lt;/div&gt;
  &lt;script src = "test.js"&gt;&lt;/script&gt;
  &lt;html&gt;
  </code></pre>
  
  <p>This is the html code (index.html)</p>
  
  <pre><code>function validation(){
      var ageinput = parseInt(document.getElementById("age"));
      var femaleinput = ducument.getElementById("female");
      var maleinput = ducument.getElementById("male");
      var weight = parseInt(document. getElementById("weight"));
      var formulaformale;
      var formulaforfemale;
      var gendererror;
      if (ageinput == 10){
          gendererror = ageinput
      }
      document.getElementById("div1").innerHTML = gendererror;
  }
  </code></pre>
  
  <p>this is the javascript code.(test.js)</p>
  
  <p>I tried to find syntax errors but everything looks fine to me, I also compared my code with other people's and I could find anything in my code that is different.I am totally new in javascript so I might have missed certain part of the programming language. please help.</p>