jquery-wizard icon indicating copy to clipboard operation
jquery-wizard copied to clipboard

Adding Steps Dynamically

Open NuelNikhil opened this issue 7 years ago • 1 comments

Hello, I am using this plugin in my angularjs project. As part of the requirement, I need to add a step dynamically on click event and I was able to append new step (li). But the buttons seems to be not getting updated. For example, I have 3 steps at first, dynamically I create a new step so in total there are 4 li elements. but on clicking Next button when the step reaches the 3rd li the button shows Finish. It should be showing Next as I got one more step which I have created dynamically. What to do ??? I tried several things like overriding button class changes, Text changes etc and was successful in making the Text Next when it reaches the 3rd step. but on clicking Next it stays at the same page / Wizard content. Need Help

NuelNikhil avatar Mar 09 '18 13:03 NuelNikhil

@NuelNikhil, it sounds like you need to reset the wizard. It was initiated with the 3 steps, so it doesn't know how about the 4th, although it is in the DOM, it wasn't there when you initiated the wizard.

$().wizard('reset');

kingsloi avatar May 24 '18 13:05 kingsloi