document.getElementByID is not a function April 2, 2023 by Tarik It’s document.getElementById() and not document.getElementByID(). Check the casing for Id.