document.getElementByID is not a function

前端 未结 4 2277
生来不讨喜
生来不讨喜 2021-02-11 13:02

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



  
           


        
4条回答
  •  执笔经年
    2021-02-11 14:04

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

提交回复
热议问题