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
Page 1 of 1
Cascading dropDownList using just arrays
#2
Posted 22 July 2010 - 08:49 AM
You can do so with jquery, just google for it. There's even an extension here:
http://plugins.jquer...DependentSelect
BTW: The "Miscellaneous" section of this forum would be the right place for these questions. "Tips, Snippets and Tutorials" is for exactly this: Useful Tipps, Snippets and Tutorials someone wants to share.
http://plugins.jquer...DependentSelect
BTW: The "Miscellaneous" section of this forum would be the right place for these questions. "Tips, Snippets and Tutorials" is for exactly this: Useful Tipps, Snippets and Tutorials someone wants to share.
Share this topic:
Page 1 of 1

Help













