I use the code as follows:
$(\".reply\").popover({ content: \"Loading...\", placement: \"bottom\" }); $(\".reply\").popover(\"toggle\");
After the popover has been correctly initialized, you can directly use jquery to replace the class="popover-content" element:
class="popover-content"
$(".popover-content").html('a nice new content')