Change the Value of h1 Element within a Form with JavaScript

后端 未结 6 1187
被撕碎了的回忆
被撕碎了的回忆 2021-02-02 11:37

I have two forms on an HTML5 page. Each form has a name and an id. The second form has an h1 element, which also has a name and an id. How do I change the text of this h1 elemen

6条回答
  •  情话喂你
    2021-02-02 11:55

    Try:

    
    document.getElementById("yourH1_element_Id").innerHTML = "yourTextHere";
    
    

提交回复
热议问题