title: IE11 Unable to get property 'value' of undefined or null reference
body: <p>it's seems that I'm having a frustrating problem and can't seem to find an answer.
  I'm trying to get the value of the element in <code>&lt;td&gt;</code> tag. The <strong>id</strong> reaches the function but for some reason I can't get the value of it. </p>
  
  <p>JS</p>
  
  <pre><code>function f(id)
    {
      console.log(id);
      expr=/ /gi;
      value = document.getElementById(id).value;
      value = value.replace(expr, "");
  
    //remaining code
    }
  </code></pre>
  
  <p>PHP</p>
  
  <pre><code>print "&lt;td style=\"height:20px;\"&gt;&lt;input $disbled type=\"text\" name=\"".$values[$i][0]."\" onChange=\"return f('".$values[$i][0]."')\" value=\"".$values[$i][1]."\" class=\"".$values[$i][2]."\"&gt;&lt;/td&gt;\n"; 
  </code></pre>
  
  <p>Any help would be appreciated!</p>