SyntaxFix
Write A Post
Hire A Developer
Questions
It's document.getElementById() and not document.getElementByID(). Check the casing for Id.
document.getElementById()
document.getElementByID()
Id