Creating dynamic dropdowns

I am new to YII. Here is my question.

I have 3 dropdowns horizontally. whenever I select a drop down another list of 3 dropdowns should appear below that populated with the data from the database. and if I select any 1 of the dropdown(newly created) again it should show 3 dropdowns. and I need to save that data to the database. How can I do this in YII and javascript.

Please help.Thanks

Hi,

You could use the jquery framework to do all that. It allows you to get/send data to your database using PHP and to dynamically create your dropdown lists.

Have a look at this: http://docs.jquery.com/How_jQuery_Works and http://www.yiiframework.com/forum/index.php?/topic/4778-what-is-the-best-form-to-load-jquery/

Hope it helps!

Alejandro.

This wiki article can help: http://www.yiiframework.com/wiki/24/creating-a-dependent-dropdown