Why am I getting “ReferenceError: getElementById is not defined”?

前端 未结 1 1135
小蘑菇
小蘑菇 2020-12-28 11:56

I have a little JavaScript code I wrote, and for some reason I\'m getting an error saying:

ReferenceError: getElementById is not defined

He

相关标签:
1条回答
  • 2020-12-28 12:54

    You need to use document.getElementById()

    0 讨论(0)
提交回复
热议问题