Difference between #3 and #4 of
How to display Dependent drop-down value using ajax call with dynamically

Revision #4 has been created by Ankit Modi on Jul 23, 2014, 8:36:08 AM with the memo:

change content
« previous (#3) next (#5) »

Changes

Title unchanged

How to display Dependent drop-down value using ajax call with dynamically

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

drop down list, ajax link, search, #dropdown

Content changed

[...]
```php
<div class="control-group">
<?php echo $form->label($model,'country',array('class'=>'control-label')); ?>
<div class="controls">

<?php echo $form->dropDownlist($model,'country',UtilityHtml::getCountryData(
$model->country), array('class'=>'m-wrap large tooltips','data-original-title'=>'Country'),
'ajax' => array(
'type'=>'POST',
'url'=>CController::createUrl('dynamicStates'),
'update'=>'#VkUsers_state',
'data'=>'js:$(this).serialize()+"&hidden_state='.$model->state.'"',
[...]
1 1
6 followers
Viewed: 50 588 times
Version: 1.1
Category: Tutorials
Written by: Ankit Modi
Last updated by: samdark
Created on: Jul 23, 2014
Last updated: 5 years ago
Update Article

Revisions

View all history