Yii Framework Forum: Ajax Populated Dropdown List For Country And State. How ? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Ajax Populated Dropdown List For Country And State. How ? Rate Topic: -----

#1 User is offline   manhooei 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 34
  • Joined: 13-September 11

Posted 13 January 2013 - 02:34 PM

I'm using CActiveForms to create my form elements. I created 2 dropdown lists one for country and the other for state. When I choose the country, I want an ajax call query the list of states/regions under that country and populate the second dropdown with those data. How can I do that nicely and cleanly ?

I appreciate your help in advance.
Alex
0

#2 User is offline   alirz23 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 755
  • Joined: 08-August 12
  • Location:Durban, South Africa

Posted 13 January 2013 - 02:38 PM

here is very detailed article written by dalip

http://www.yiiframework.com/wiki/24/

help yourself
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users