0

The error Uncaught TypeError: Cannot read property 'value' of null is alerted for the following JavaScript, even though the HTML has the same id name.

Script

var ctdwnSec = document.getElementById("ctdwnTimeDispSec").value;

HTML

<input type="text" value="0" id="ctdwnTimeDispSec"/>
Community
  • 1
  • 1
Amauri
  • 470
  • 3
  • 14

0 Answers0