0

I keep getting an error #<HTML document> has no method 'document.getElementByTagName

https://code.sololearn.com/W2h6e05ZId6X/?ref=app

11th Jul 2019, 7:59 PM
Andries Coetsee
Andries Coetsee - avatar
3 odpowiedzi
+ 2
why don't you use (in HTML) <div id="dave"> ... </div> (in Js) var dave = document.getElementById("dave");
11th Jul 2019, 9:43 PM
Anton Böhler
Anton Böhler - avatar
+ 1
Thanks I tried it, However now I found another bug in my code. Unexpected end of input: line 43. What does that mean?
12th Jul 2019, 3:19 AM
Andries Coetsee
Andries Coetsee - avatar
+ 1
never mind, I was missing a " }" at the end. Thankd it works now
12th Jul 2019, 3:26 AM
Andries Coetsee
Andries Coetsee - avatar