title: Uncaught TypeError: Cannot read property 'value' of null, need some direction
body: <p>I have been trying to figure out this particular problem in my developer tools, but I've had no luck thus far. I have an error on one of my js files that says </p>
  
  <pre><code>Uncaught TypeError: Cannot read property 'value' of null 
  </code></pre>
  
  <p>The following error refers to the 1st variable of dt_version below. The particular thing is if I comment out the first line of code. I get the same error on the following variables of offload1 and offload2. The variable is a number that I am trying to get passed over. I run this function on my body when the page loads...<code>onload=updatetotal();</code></p>
  
  <pre><code>    function updatetotal() {
      var dt_version = document.getElementById("dt_version").value-0;
      var offload1 = document.getElementById("capacity_offload1").value-0;
      var offload2 = document.getElementById("capacity_offload2").value-0;
      var offload3 = document.getElementById("capacity_offload3").value-0;
      }
  </code></pre>
  
  <p>If a run an if statement looking for <code>document.getElementByID("dt_version");</code>...it defaults to false..so its not being carried over though on the previous page, I can see its input fine with the value in it. What am I missing here guys?</p>