Change label text using JavaScript

前端 未结 8 1164
后悔当初
后悔当初 2020-11-27 04:39

Why doesn\'t the following work for me?



        
8条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-27 05:02

    Because a label element is not loaded when a script is executed. Swap the label and script elements, and it will work:

    
    
    

提交回复
热议问题