Why class selector is not created on click action?

前端 未结 2 1906
北恋
北恋 2020-12-07 06:13

Below is the HTML code:





    
    

        
2条回答
  •  既然无缘
    2020-12-07 07:13

    Try moving the script tag and putting it at the very end of the body. They way it is now, the script is trying to run before the elements on the page are loaded. Moving the script tag to the bottom of the body will ensure that all the html elements above it have loaded properly.

提交回复
热议问题