dynamically changing HTML tag

前端 未结 1 1009
予麋鹿
予麋鹿 2021-01-23 09:50

Is there a way to dynamically update an HTML tag?

The HTML tag I have is:

hello

Is there a way through

1条回答
  •  梦谈多话
    2021-01-23 10:14

    document.getElementById("something").innerHTML = 'Something New';
    

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