JavaScript Error : Uncaught TypeError: document.getElementByID is not a function

JavaScript Error:

Uncaught TypeError: document.getElementByID is not a function

Solution:


This error is occur when you write wrong syntax. JavaScript is case-sensitive so be careful while writing code. The ‘b’ and ‘I’ in getElementbyid should be capitalized.

Comments