Uncaught TypeError: Cannot set property 'value' of null

The Solution to Uncaught TypeError: Cannot set property 'value' of null is


You don't have an element with the id u.That's why the error occurs. Note that the global variable document.getElementById("u").value means you are trying to get the value of input element with name u and its not defined in your code.

~ Answered on 2013-04-19 08:38:26


Most Viewed Questions: