Bootstrap popover content cannot changed dynamically

后端 未结 14 2258
旧时难觅i
旧时难觅i 2020-11-29 22:40

I use the code as follows:

$(\".reply\").popover({
  content: \"Loading...\",
  placement: \"bottom\"
});

$(\".reply\").popover(\"toggle\");
14条回答
  •  渐次进展
    2020-11-29 23:29

    SIMPLE SOLUTION

    You can try with this :

    //Bootstrap v3.3.7 var popoverEl = $("#popover"); popoverEl.attr("data-content", "NEW CONTENT"); popoverEl.popover("show");

    Thanks.

提交回复
热议问题