mstratman / jQuery-Smart-Wizard

flexible jQuery plug-in that gives wizard like interface
http://mstratman.github.com/jQuery-Smart-Wizard/
303 stars 164 forks source link

Add/remove steps dynamically through Ajax callbacks #62

Open smortezapoor opened 10 years ago

smortezapoor commented 10 years ago

Hi I was wondering if I could have dynamic number of steps.

Here is the scenario: There are some steps, in one of the steps, user can login (step 4 of 7) via ajax and there is no post backs. So after getting the result of the login, ajax callback should decide whether the next step (5 of 7) is required of not, if not the step 5 should disappear. I tried to reach this goal by setting the display property to none for both header and div of that step by only the header's gone and by clicking on Next, the undesired step is shown.

What do you suggest in case I need to add/remove some steps dynamically?

Best regards. Soroosh