Twitter bootstrap download wizard skips steps during onnext

This is a specific question for twitter bootstrap http://vadimg.com/twitter-bootstrap-wizard/

I am trying to decide if anyone can skip steps when handling the onNext event. I want to skip steps depending on the inputs that were selected in the previous steps. I saw that you can do this:

$('#rootwizard .finish').click(function() { alert('Finished!, Starting over!'); $('#rootwizard').find("a[href*='tab1']").trigger('click'); }); 

I cannot use this because I disabled tabs, and this, unfortunately, does not help if I use this during the onNext event, if I turned on the tabs, as it continues to execute code from the onNext trigger event.

Thanks Dan

+4
source share
1 answer

just you can use

 _myWizard.bootstrapWizard('show', 6);// zero-bazed index 

and _myWizard is what came back from bootstrapWizard initialisation

 var _myWizard=$('#AddMemberWizard').bootstrapWizard({ 'tabClass': 'form-wizard', 'onNext': function (tab, navigation, index) { ..... } }); 

hope this helps you

0
source

All Articles