Submit each step and then next in bootstrap wizard

Sahib picture Sahib · Jun 21, 2014 · Viewed 18.7k times · Source

Actually I have to design a form with multi steps. Using bootstrap wizard I tried alot but it jumps to the first step when one step(form) is submited. How can I prevent it from going to the first step and to go to the next step after successfully saving the current data to the database. I am using php and javascript languages. Any help ? is it possible? or I have to design a page for each step rather than wizard tabs. Thanks in advance.

Answer

chriz picture chriz · Jun 21, 2014

i have worked with bootstrap wizard, i was using the following code for moving to next or previous tab after submitting data..

for moving next tab

$('#form_wizard').bootstrapWizard('next');

for moving previous

$('#form_wizard').bootstrapWizard('previous');

have a look here