Chained drop down menus without using the value in the html

I have a couple menus where the second menu depends on the choice of the first menu. And the third menu depends on the second menu.

When you choose an option from the first menu it filters the choices of the second menu.

can u do this without changing the value= in the html code?

Thanks