+ 1

What is wrong in this code in class 1? Can you help me?

I'm confused with document.getElementbyId, the "Class 1" in this code didn't work.. It shows "document.getElementbyId is not a function" but in "Class 2" it works fine well. They are the same but what's wrong in this code ?? Can you help me? I am new SoloLearner :) https://code.sololearn.com/WD1x7n652nFl/?ref=app

29th Sep 2018, 6:54 AM
Maverick Fabroa
Maverick Fabroa - avatar
2 Answers
+ 10
Typo. You should have: document.getElementById Not: document.getElementbyId
29th Sep 2018, 7:01 AM
jay
jay - avatar
+ 2
Ahhh.. I understand now.. Thank you so much😇
29th Sep 2018, 7:53 AM
Maverick Fabroa
Maverick Fabroa - avatar