[英]Refreshing the content of BootStrap Popover
I am trying to refresh the content of the popover. 我正在尝试刷新弹出窗口的内容。 I know the content gets updated when i click the button, however, its not showing on the already opened popover.. 我知道单击按钮时内容会更新,但是,它不会显示在已经打开的弹出窗口上。
$('#popOverPr')
.popover(
{
animate : false,
html : true,
offset : 10,
placement : 'bottom',
template : '<div class="popover popOverProgress" "><div class="arrow" style="left:80%";></div><div class="popover-inner"><h3 class="popover-title" style="display:none;"></h3><div class="popover-content"><p></p></div></div></div>',
content : function() {
return $('#popOverPr-content').html();
}
$('#popOverPr').popover('show');
$('.popoverButton').on('click', function() {
//if(........)
$('#popOverPauseText').text("Resume");
// else
$('#popOverPauseText').text("Start");
}
});
您可以销毁弹窗,重新创建一个内容不同的新弹窗
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.