document.getElementByID is not a function

It’s document.getElementById() and not document.getElementByID(). Check the casing for Id.

Leave a Comment