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


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: and

Hope it helps!


This wiki article can help: