Dependent Dropbox List In Yii 2

I was wondering what is the recommended way to deal with dependent dropdown widgets in Yii 2. I know how to do this in Yii 1.1 ( ), but with this does not seem to work anymore in Yii 2.

Thank you in advance for any help you can give. :)

You could use the similar logic - and write your own ajax action calls to overwrite the depend select HTML.

Alternatively you could use one of my newer Dependent Dropdown widget, DepDrop that handles this. This is a Yii 2 wrapper for the dependent-dropdown jQuery plugin by Krajee. This plugin allows multi level dependent dropdown setup with nested dependencies.

Thanks this is useful.