Javascript innerHTML is not getting updated

后端 未结 5 1901
抹茶落季
抹茶落季 2021-01-29 00:39

Hi I am trying to update the innerHTML of following script



        
5条回答
  •  無奈伤痛
    2021-01-29 01:21

    you can add button as string with Text then you get your Output Demo Html

    function changeText() {
    
      var cls = document.getElementById("global-alert-queue").getElementsByClassName("animate-in")[0].innerHTML = 'Change Text ';
    }

提交回复
热议问题