【发布时间】:2015-01-15 16:41:07
【问题描述】:
如何在重新初始化时保存弹出框内容?这是我的代码,弹出窗口包含一个表单。如果用户在填写一些信息后返回,我想保留表单值...
$(this).popover({
html: true,
trigger: 'manual',
placement: 'bottom',
content: function () {
var $contents = $('#popover_template').html();
return $contents;
}
}).popover('toggle');
我不想要任何模式窗口等。即使重新打开弹出框,有没有办法保留表单的内容。
谢谢。
【问题讨论】:
-
你能显示
#popover_template的标记吗?