Bootstrap Wizard Steps with Progress Bar

Ruth Jul 09, 2026

Creating a multi-step wizard with a progress bar is a common requirement in web development, enabling users to navigate through complex processes with ease. Bootstrap, a popular CSS framework, offers built-in components to simplify this task. Let's explore how to create a Bootstrap wizard with progress bar step by step.

Wizard
Wizard

Before we dive into the code, ensure you have included the Bootstrap CSS and JavaScript files in your project. You can include them via CDN or download and host the files locally.

GitHub - VinceG/twitter-bootstrap-wizard: This twitter bootstrap plugin builds a wizard out of a formatter tabbable structure. It allows to build a wizard functionality using buttons to go through the different wizard steps and using events allows to hook into each step individually.
GitHub - VinceG/twitter-bootstrap-wizard: This twitter bootstrap plugin builds a wizard out of a formatter tabbable structure. It allows to build a wizard functionality using buttons to go through the different wizard steps and using events allows to hook into each step individually.

Setting Up the Basic Structure

The first step is to set up the basic structure of your wizard. This includes creating the progress bar and the steps. We'll use Bootstrap's progress bar and nav components for this.

Bootstrap Wizard Templates
Bootstrap Wizard Templates

Here's a simple example of how to structure your HTML:

```html

an image of a web page with people's names and numbers on the screen
an image of a web page with people's names and numbers on the screen

Content for Step 1
Content for Step 2
Content for Step 3
```

Styling the Progress Bar

By default, the progress bar is blue. You can change its color using Bootstrap's pre-defined classes or custom CSS. Here's how you can change the color to green:

```html

```

Updating the Progress Bar

How to Design a Magical Form Wizard
How to Design a Magical Form Wizard

To update the progress bar as the user progresses through the steps, you'll need to use JavaScript. You can use jQuery to simplify this process. Here's a simple example:

```javascript $('.nav-tabs a').on('shown.bs.tab', function (e) { var step = $(e.target).text().replace('Step ', ''); var percentage = (step / 3) * 100; $('.progress-bar').text(percentage + '%').width(percentage + '%'); }); ```

Implementing Form Validation

In a multi-step form, it's crucial to validate user inputs at each step. Bootstrap provides form validation classes that you can use to style and validate your forms.

Bootstrap Tutorials: The Best of Azmind | AZMIND
Bootstrap Tutorials: The Best of Azmind | AZMIND

Here's an example of how to use Bootstrap's form validation classes:

```html

Please enter your name.
```

In this example, the `required` attribute is used to mark the field as mandatory. The `invalid-feedback` class is used to display an error message when the field is invalid.

an image of a computer screen with the words start order and instructions to make it easier for
an image of a computer screen with the words start order and instructions to make it easier for
three different types of accounts, security, and review on a white background with blue text
three different types of accounts, security, and review on a white background with blue text
Tailwind Form with progress bar
Tailwind Form with progress bar
How to Create Progress Bars in Google Sheets (Step-by-Step)
How to Create Progress Bars in Google Sheets (Step-by-Step)
Form Wizard - Multi Step Form Validation
Form Wizard - Multi Step Form Validation
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
30 Best Free Bootstrap Wizards & Forms 2026 - Colorlib
30 Best Free Bootstrap Wizards & Forms 2026 - Colorlib
Bootstrap 4 Modal Dialog Form-Wizard
Bootstrap 4 Modal Dialog Form-Wizard
the screen is showing that there are two different things in the image and one has an arrow
the screen is showing that there are two different things in the image and one has an arrow
Multi-Step Form with Progress Bar JS - Code Snippet
Multi-Step Form with Progress Bar JS - Code Snippet
Multi Step Form With Progress Bar Using CSS JavaScript | Single Input
Multi Step Form With Progress Bar Using CSS JavaScript | Single Input
Simple Wizard Modal Plugin with jQuery and Bootstrap - Easy Wizard
Simple Wizard Modal Plugin with jQuery and Bootstrap - Easy Wizard
Circular progress bar with HTML and CSS
Circular progress bar with HTML and CSS
Scalable Responsive Progress Bar
Scalable Responsive Progress Bar
an image of a line graph showing the steps in which you can step up and down
an image of a line graph showing the steps in which you can step up and down
юю
юю
UI/UX ART
UI/UX ART
a screenshot of the login screen for an application with blue background and green text
a screenshot of the login screen for an application with blue background and green text
three white horizontal banners with green arrows on purple background, set of three horizontal banners
three white horizontal banners with green arrows on purple background, set of three horizontal banners
Responsive jQuery Progress Bar With Steps - Progressbar.js
Responsive jQuery Progress Bar With Steps - Progressbar.js

Enabling and Disabling Next Button

To ensure users can only proceed to the next step if the current step is valid, you can enable or disable the next button based on the validity of the form. Here's an example:

```javascript $('#myForm').on('input', function () { var isValid = $(this).valid(); $('#nextBtn').prop('disabled', !isValid); }); ```

In this example, the `input` event is used to check the validity of the form whenever the user types in a field. The `valid()` method returns `true` if the form is valid, and `false` otherwise. The `disabled` property of the next button is then set to the opposite of `isValid`.

Navigating Between Steps

To navigate between steps, you can use Bootstrap's tab JavaScript API. Here's an example of how to navigate to the next step when the next button is clicked:

```javascript $('#nextBtn').on('click', function (e) { e.preventDefault(); $('#myForm').valid(); $('.nav-tabs a[href="#' + $('#myForm').find('.tab-pane.active').attr('id') + '"]').tab('show'); }); ```

In this example, the `preventDefault()` method is used to prevent the default form submission behavior. The `valid()` method is called to validate the form. Finally, the `tab()` method is used to show the next tab.

Responsive Design

Bootstrap is responsive by default, which means your wizard will automatically adapt to different screen sizes. However, you may need to adjust the layout for smaller screens. Here's an example of how to make the progress bar and steps stack on small screens:

```html

```

In this example, the `d-sm-none` class is used to hide the progress bar on small screens. The `d-sm-flex` class is used to make the progress bar and steps stack on small screens. The `flex-column` class is used to stack the steps vertically on small screens.

Creating a Bootstrap wizard with a progress bar involves setting up the basic structure, styling the progress bar, updating the progress bar as the user progresses through the steps, implementing form validation, enabling and disabling the next button, navigating between steps, and ensuring the layout is responsive. With these steps, you can create a user-friendly multi-step form that guides users through complex processes.