use $this->Form->input('citilist',array('options'=>$state_code_list)); in
cakephp.Save all cities in database and set variale
as 
state_code_list=$this->Cities->find('list',array('fields'=>array('Cities.cityID','Cities.city')));

On Thu, Jan 27, 2011 at 11:23 AM, andy_the ultimate baker <
[email protected]> wrote:

> hi, good morning,
> i m working on project where i want create two drop down,
> in first i will choose "state" so that the next drop down should how
> the cities with respect to the state selected in first. all that i
> want to create in javascript,
>
> for that i have collected all state_code and its cities in variable.
> the variable name is given in following way
>
> var (state_code)_list = (citilist)
>
> i ave collected the sate and cities in one variable,
>
> please some suggest me the steps to be fallowed so that i can work on
> it.
>
> i m fresher in javascript.
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to