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.'"',[...]