How to change a text with jQuery

前端 未结 7 1632
执念已碎
执念已碎 2020-12-03 00:24

I have an h1 with id of toptitle that is dynamically created, and I am not able to change the HTML. It will have a different title depends on a pag

相关标签:
7条回答
  • 2020-12-03 01:04
    $('#toptitle').html('New world');
    

    or

    $('#toptitle').text('New world');
    
    0 讨论(0)
提交回复
热议问题