document.getElementByID is not a function

前端 未结 2 1606
孤城傲影
孤城傲影 2021-02-11 13:17

I\'m learning jQuery and was following a tutorial, a very strange error has perplexed me. Here\'s my html :



  
           


        
相关标签:
2条回答
  • 2021-02-11 13:42

    It's getElementById()

    Note the lower-case d in Id.

    0 讨论(0)
  • 2021-02-11 13:59

    It's document.getElementById() and not document.getElementByID(). Check the casing for Id.

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