[removed] document.getElementById() returns NULL

后端 未结 7 2195
遥遥无期
遥遥无期 2021-01-02 01:23

I am quite new with Javascript and I got a problem with document.getElementById() that always returns NULL, and that\'s driving me nuts.

I have a element in my code

7条回答
  •  没有蜡笔的小新
    2021-01-02 01:42

    in my case it was because of having this line at the beginning of the jsp/html(whatever) file:

    
    

    removing it solved my problem.

提交回复
热议问题