Options of one dropdown effect the options of other dropdown

I am making a dashboard with multiple dropdown buttons. I want it such that once I select the option for the first dropdown, the options of the other dropdown change automatically. For example, the first dropdown is the country and the second dropdown is the states in the selected country and the third are the cities in the selected state. How should I go about doing it? Any examples will be helpful!

Welcome to the forums.

You’d want to utilize callbacks for this such that when you select an option in dropdown 1, it loads and/or updates the options in dropdown 2.


If you look in this post there is an example to get you started.