سؤال

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.

هل كانت مفيدة؟

المحلول

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top