Change label text using JavaScript

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

Why doesn\'t the following work for me?



        
8条回答
  •  無奈伤痛
    2020-11-27 05:20

    Using .innerText should work.

    document.getElementById('lbltipAddedComment').innerText = 'your tip has been submitted!';
    

提交回复
热议问题