Bootstrap应用程序向导内容消失 [英] Bootstrap application wizard content disappears
本文介绍了Bootstrap应用程序向导内容消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 https://github.com/amoffat/bootstrap-application-向导/创建应用程序向导.
I'm using https://github.com/amoffat/bootstrap-application-wizard/ to create a application wizard.
我想根据按下的按钮打开一个向导. 因此,我使用了以下代码:
I want to open a wizard based on which button is pressed. So, i have used the following code:
$(".button").on('click',function(){
var id= $(this).data('btnid');
$("#wizard"+id).wizard().show();
});
但是,当我单击按钮->关闭模态->重新打开模态时,向导内容消失,它只是显示一个空向导.
But when I click on button -> close modal -> reopen the modal, the wizard content disappears, it just shows an empty wizard.
推荐答案
可以通过以下方式解决此问题:将引用存储在某个位置,然后使用引用来调用向导的show()方法.
This can be resolved by storing the references somewhere and using the reference to call show() method of the wizard.
这篇关于Bootstrap应用程序向导内容消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文