How to change dropdown value from another dropdown

Hey Guys,

I have one form, where two dropdown list, I want to change when user select value from dropdown list1 then automatically change second dropdown list value. Is that possible in yii? I know this is possible using javascripts with php.

You can find this cookbook’s article helpful: