webapp rec – Can I make a multilevel dropdown using a web-based graphical user interface?

I want to create a dropdown like this, but I need different levels: first, a dropdown for Union states and territory, and then alternatively another dropdown with the names of the different states with a scroll bar.

So can anyone help me? Thank you