Hello
I want to use Cascading DropDownList using just two set arrays without having to make an Ajax calls. Is it possible?
I have a following drop down. Based on country selected, I want show list of states in the selected country
echo CHtml::dropDownList('country-id', '',
array('US' => 'America',
'CA' => 'Canada',
'JP' => 'Japan',
));
echo CHtml::dropDownList('state-id', '',
array('US-CA' => 'California',
'US-FL' => 'Florida',
'CA-AL' => 'Alberta',
'JP-KA' => 'Kansai',
));
Thanks in advance