Bootstrap application wizard content disappears

杀马特。学长 韩版系。学妹 提交于 2019-12-12 04:35:40

问题


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.


回答1:


This can be resolved by storing the references somewhere and using the reference to call show() method of the wizard.



来源:https://stackoverflow.com/questions/19739676/bootstrap-application-wizard-content-disappears

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!