title: Javascript - Multiply two input fields together and display
body: <p>The idea is that I should be able to have two fields where I input numbers, then I need to display the sum as well as the product.<br>
  I figured I would test out the product, but I keep getting a "Not a Number" error. Any help Would be great! </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;body&gt;
  
      &lt;form&gt;
          First Number&lt;br&gt;
          &lt;input id="num1" type="text" name="num1"&gt;
      &lt;br&gt;
          Second Number:&lt;br&gt;
          &lt;input id="num2" type="text" name="num2"&gt;
          &lt;br&gt;&lt;br&gt;
        &lt;input type="button" value="Do Maths" onclick="doMath();" /&gt;
      &lt;/form&gt;
  
    &lt;script&gt;
  
        function doMath() {
            var numOne = document.getElementById('num1').value;
            var numTwo = document.getElementById('num2').value;
            var theProduct = parseInt(my_input1) * parseInt(my_input2);  document.write(theProduct);
            document.write(theProduct);
  
  
  }
  
    &lt;/script&gt;
  
  
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>