Difference between #14 and #15 of
Creating a dependent dropdown

Revision #15 has been created by Paul_Kish on Dec 3, 2014, 11:58:57 AM with the memo:

Reverted to revision #13
« previous (#14)

Changes

Title unchanged

Creating a dependent dropdown

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

AJAX, drop down list

Content changed

[...]
The view with the form.
-----------------------
We'll show a form that shows countries and dependent of the country selected will show cities.

```php
echo CHtml::dropDownList('country_id',
array()'', array(1=>'USA',2=>'France',3=>'Japan'),
array(
'ajax' => array(
'type'=>'POST', //request type
'url'=>CController::createUrl('currentController/dynamiccities'), //url to call.
//Style: CController::createUrl('currentController/methodToCall')
[...]
83 2
92 followers
Viewed: 412 387 times
Version: 1.1
Category: Tutorials
Written by: dalip
Last updated by: Paul_Kish
Created on: Mar 23, 2009
Last updated: 9 years ago
Update Article

Revisions

View all history