hi guys
i am new to yii.i want to select city name from state name...
how i do that?
Page 1 of 1
chosing city name from state name
#2
Posted 14 June 2012 - 11:24 PM
Hi
You simple to solve using ajax with (jQuery & Javascript) .
This is best
Regards
Ankit Gorasiya,
PHP & Yii Web Developer
You simple to solve using ajax with (jQuery & Javascript) .
This is best
Regards
Ankit Gorasiya,
PHP & Yii Web Developer
Ankit
PHP Yii, Codeigniter developer
Gmail : ankit.gorasiya@gmail.com
Skype : ankit.gorasiya
PHP Yii, Codeigniter developer
Gmail : ankit.gorasiya@gmail.com
Skype : ankit.gorasiya
#3
Posted 20 June 2012 - 05:33 AM
parmesh, on 11 June 2012 - 12:23 AM, said:
hi guys
i am new to yii.i want to select city name from state name...
how i do that?
i am new to yii.i want to select city name from state name...
how i do that?
use dependent dropdownlist...
Rajith Ramachandran,
Wiwo inc.
| Mobile: 919995504508
Wiwo inc.
| Mobile: 919995504508
#4
Posted 19 July 2012 - 07:32 AM
use dependent link like this
here action for populating the second dropdown run by ajax call on selecting first dropdown list
<?php echo $form->dropdownList($model1,'id',
CHtml::listData(promo::model()->findAll(), 'id', 'promoName'),
array(
'empty'=>'select option',
'ajax'=>array(
'type'=>'POST',
'url'=>CController::createurl('loadtemp'),
'update'=>'#view_t',
)));
?>
echo cHtml::dropDownList('view_t','');
here action for populating the second dropdown run by ajax call on selecting first dropdown list
When I read what I write I learn what I think
#6
Posted 15 September 2012 - 08:16 AM
the best way of adding your city to yii is using dropdown list like, there are tables named cities,states and countries--when you select coutry list of states is filled into second dependant dropdown box
i.e states dropdownbox. Rather than you can use ajax((jQuery & Javascript).
i.e states dropdownbox. Rather than you can use ajax((jQuery & Javascript).
Share this topic:
Page 1 of 1

Help












