AJAX Category and SubCategory List


I have to make a Category and Sub Category drop down list , but it is AJAX-driven.

Depending on Category, Sub categories are shown.

I am getting options to do it in non-YII way adding all logic in HTML.

Is their a better way in YII to do the same ?


Search the forum for ‘dependent dropdown’. Many solutions posted.