Javascript innerHTML is not getting updated

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

Hi I am trying to update the innerHTML of following script



        
5条回答
  •  醉梦人生
    2021-01-29 01:12

    seems like it is working correctly. Maybe you should move your script below the HTML. or check for document ready.

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

提交回复
热议问题