How to know the value of selected item in a dropdown list?

Hello!

In a form I have two dropdown lists. The second one depends on the selected item in the first one.

How can I get the selected item in the first dropdown list to use it in the seconde dropdown list?

Thanks! :)

Hi. Please check this wiki: http://www.yiiframework.com/wiki/24/creating-a-dependent-dropdown/

Thank you for the link, very useful! It works ;)