Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript Console Trouble

Tags:

javascript

In general, in the JavaScript console, if it states:

Uncaught TypeError: Object #<HTMLDocument> has no method 'getElementByID'

what is the typical problem in your code? I'm new to JavaScript and in writing a program, this has repeatedly come up and I'm not sure how to fix the problem or what could even possibly be the problem.

like image 320
ecode4 Avatar asked Feb 27 '26 23:02

ecode4


1 Answers

getElementById not getElementByID

Lower case d. JavaScript is case-sensitive.

like image 106
davin Avatar answered Mar 01 '26 13:03

davin