How to update bootstrap popover text?

后端 未结 9 880
长发绾君心
长发绾君心 2020-12-07 20:31

I am using bootstrap-popover to show a message beside an element.

If I want to show different text in the popover after the first time, the text does not change. Re

9条回答
  •  感动是毒
    2020-12-07 20:53

    On Boostrap 4 it is just one line:

    $("#your-element").attr("data-content", "your new popover content")
    

提交回复
热议问题