Uncaught TypeError: Cannot set property ‘value’ of null

You don’t have an element with the id u.That’s why the error occurs.
Note that you are trying to get the value of the input element with the name ‘u’ and it’s not defined in your code.

Leave a Comment