0
我试图将内容动态加载到Bootstrap弹出窗口中。提交表格时,我可以提醒该值;这工作正常。我不能做得到的内容#popover-thanks
加载在弹出窗口中,用感谢信息替换表单。在表单提交后将动态内容加载到Bootstrap弹出窗口中
// show the popover
$('#btn').popover({
html : true,
placement: 'top',
content: function() {
return $('#popover-form').html();
}
});
// form has been submitted
$(document).on('click', '#submit', function() {
var value = $('#value').val();
alert(value);
$('#btn').popover({
html : true,
content: function() {
return $('#popover-thanks').html();
}
});
});
哈!我试图摧毁它并展示它,但不是在一起!谢谢 :) – timgavin