O'Reilly logo

Bootstrap for ASP.NET MVC by Pieter van der Westhuizen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Cascading dropdowns

You can add drop-down menus to almost any Bootstrap component using the dropdown plugin. A cascading dropdown is a dropdown that updates its data based on a value selected in another dropdown. To add cascading dropdowns, perform the following steps:

  1. We'll add drop-down menus to two buttons which will list the region and territory data that was retrieved from a database. When the user selects a region, the Territory drop-down list will update to show only those territories associated with the selected region. The following screenshot illustrates the end result:
    Cascading dropdowns
  2. The two drop-down menus will be used in our Edit Customer view, and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required