Bootstrap Form Input Dropdown

Ruth Jul 09, 2026

Bootstrap, a popular CSS framework, simplifies responsive web development by providing pre-defined classes for common UI components. One such component is the form input dropdown, which allows users to select from a list of options. In this article, we'll explore how to create and customize Bootstrap form input dropdowns.

HTML Form Validation with Bootstrap
HTML Form Validation with Bootstrap

Before diving into the details, ensure you have included the Bootstrap CSS and JavaScript files in your project. You can download them from the official website or use a CDN. Once you've set up Bootstrap, you're ready to create dropdowns.

Bootstrap Forms
Bootstrap Forms

Creating Basic Dropdowns

To create a basic dropdown, wrap the dropdown trigger and the dropdown menu within the .dropdown class. The trigger can be a button or a link, while the menu should have the .dropdown-menu class.

UI UX input text filed design concept
UI UX input text filed design concept

Here's a simple example:

```html

Bootstrap 5 popup form
Bootstrap 5 popup form

```

Dropdown Placement

By default, dropdowns appear below the trigger. However, you can change their position using the dropend, dropstart, or dropup classes. The first two make the dropdown appear to the right or left of the trigger, while the latter makes it appear above.

Here's an example of a dropdown with right alignment:

BOOTSTRAP INPUT FORM (2020) | HOW TO MAKE FORM IN BOOTSTRAP
BOOTSTRAP INPUT FORM (2020) | HOW TO MAKE FORM IN BOOTSTRAP

```html

```

Dropdown Sizes

You can change the size of the dropdown trigger using the .btn-lg, .btn-sm, or .btn-xs classes. These classes correspond to large, small, and extra small button sizes, respectively.

Wizard
Wizard

Here's an example of a dropdown with a small trigger:

```html

a screenshot of a login screen with the text create a team on it
a screenshot of a login screen with the text create a team on it
📝 Create Text Input Forms and Submit Button in HTML
📝 Create Text Input Forms and Submit Button in HTML
a web page with the words dropdown variations
a web page with the words dropdown variations
Full-width Split Button Dropdown in Bootstrap
Full-width Split Button Dropdown in Bootstrap
Login form
Login form
Bootstrap Responsive Design Registration Form
Bootstrap Responsive Design Registration Form
a screenshot of an email form with the contact details section highlighted in purple and white
a screenshot of an email form with the contact details section highlighted in purple and white
an image of the layout for a website with different colors and font options on it
an image of the layout for a website with different colors and font options on it
Modern Popup UI Design with Input Form and Calendar Select
Modern Popup UI Design with Input Form and Calendar Select
the bootstap login and register forms page
the bootstap login and register forms page
Add remove input fields dynamically using jQuery and bootstrap
Add remove input fields dynamically using jQuery and bootstrap
a screenshot of the user creation process
a screenshot of the user creation process
the new product page is displayed on an iphone
the new product page is displayed on an iphone
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
Bootstrap Tutorial | Bootstrap Notes | Bootstrap 5
the different dropdowns page in wordpress
the different dropdowns page in wordpress
two screens showing the user's options for different types of text and numbers on each screen
two screens showing the user's options for different types of text and numbers on each screen
Reminder Form, Form Ui Design Website, Form Design Ui, Form Ui Design, Supplier Score Card, Credit Score App Interface, Form Ui, Experian Credit Score Screenshot, Credit Card Checkout Ui Design
Reminder Form, Form Ui Design Website, Form Design Ui, Form Ui Design, Supplier Score Card, Credit Score App Interface, Form Ui, Experian Credit Score Screenshot, Credit Card Checkout Ui Design
the screenshot of an email form that is being used as a project management tool
the screenshot of an email form that is being used as a project management tool
Bootstrap Add Rows To Table
Bootstrap Add Rows To Table
BOOTSTRAP : MOST USEFUL CODES TO USE WHILE CODING
BOOTSTRAP : MOST USEFUL CODES TO USE WHILE CODING

```

Form Input Dropdowns

Bootstrap also provides form input dropdowns, which are useful for selecting options in forms. These dropdowns use the .form-select class instead of the .dropdown-menu class.

Here's an example of a form input dropdown:

```html ```

Customizing Form Input Dropdowns

You can customize form input dropdowns using the same classes as regular dropdowns. For example, you can add the .form-select-lg or .form-select-sm classes to change the size of the dropdown.

Here's an example of a large form input dropdown:

```html ```

In conclusion, Bootstrap's form input dropdowns provide a simple and efficient way to create select menus in your web applications. By understanding the basic structure and customization options, you can create engaging and user-friendly dropdowns that enhance the overall user experience. Happy coding!