Bootstrap Step wizard jQuery Plugin

Jeffrey Polk July 09, 2023

ADN
bootstrap-step-wizard-jquery-plugin

Live Preview Download

The Bootstrap Step Wizard jQuery Plugin displays content in a step-by-step wizard using the bootstrap modal component. It handles step transitions, validation, and key events. The wizard and its steps are defined using structured HTML. The order of the "div" s determines the order of the steps. There are numerous customization options. Before proceeding, each step can be validated using form or custom validation.
To control the visibility and appearance of each step as users progress through the wizard, wizard provides methods such as .show(),.hide(), and.addClass(). Users can easily navigate multi-step processes while keeping a clear understanding of their progress.

How To Use Bootstrap Step Wizard jQuery Plugin :

Ensure that the jQuery library and the Bootstrap framework are properly installed on the webpage.

  1. <link href="/path/to/bootstrap.min.css" rel="stylesheet">
  2. <link href="/path/to/wizard.min.css" rel="stylesheet">
  3. <!-- YOUR BODY -->
  4. <script src="/path/to/jquery.min.js"></script>
  5. <script src="/path/to/bootstrap.min.js"></script>
  6. <script src="/path/to/wizard.min.js"></script>

The wizard and the steps it takes are defined by structured HTML. The order of the divs within the wizard determines the order of the steps presented. The wizard class defines the wizard, and the wizard-step class defines each step.

  1. <!-- Begin wizard -->
  2. <div class="wizard" id="devstocWizard" data-id="devstoc-1">
  3. <-- Step One -->
  4. <div class="wizard-step" data-title="Step One">
  5. This is step one
  6. </div>
  7. <-- Step Two -->
  8. <div class="wizard-step" data-title="Step Two">
  9. <label>PayPal Email</label>
  10. <input type="email" class="form-control">
  11. <small class="help-text">Your PayPal email address</small>
  12. </div>
  13. <-- Step Three -->
  14. <div class="wizard-step" data-title="Step Three">
  15. This is step three
  16. </div>
  17. </div>
  18. <!-- End wizard -->

Initialize the Step wizard jQuery Plugin.

  1. $('#devstocWizard').wizard();

It is not possible to perform automatic initialization based on CSS classes. Every wizard will almost certainly need to provide some initialization options. To start a wizard, use JavaScript and pass the options. The default options are as follows:

  1. $('#devstocWizard').wizard({
  2. title: '',
  3. validators: null,
  4. onSubmit: null,
  5. onReset: null,
  6. onCancel: null,
  7. onClose: null,
  8. onOpen: null,
  9. previousText: '<< Back',
  10. nextText: 'Next >>',
  11. submitText: 'Submit',
  12. cancelText: 'Cancel',
  13. showCancel: true,
  14. showPrevious: true,
  15. showProgress: false,
  16. isModal: true,
  17. autoOpen: false
  18. });

Next: Why are sales funnels important?

also view other related posts,