Two Ajax Call With One Click

Hi,

I am newbie to yii. I am trying to create two dependent dropdownlist with one dropdownlist value. I don’t know how to write code for multiple ajax call. Below I have paste the code what I have tried.

<?php

echo CHtml::dropDownList(‘region_id’,’’,

array(2=>‘New England’,1=>‘Middle Atlantic’,3=>‘East North Central’),

array(

‘prompt’=>‘Select Region’,

‘ajax’ => array(

‘type’=>‘POST’,

‘url’=>Yii::app()->createUrl(‘site/loadcities’),

‘data’=>array(‘region_id’=>‘js:this.value’),

‘success’=>'function(html)

{

jQuery("#city_name").html(html)

}’ ,

array(

‘type’=>‘POST’,

‘url’=>Yii::app()->createUrl(‘site/loadcities1’),

‘data’=>array(‘region_id’=>‘js:this.value’),

‘success’=>'function(html)

{

jQuery("#city_name1").html(html)

}’ )

)));

echo CHtml::dropDownList(‘city_name’,’’, array(), array(‘prompt’=>‘Select City’));

echo CHtml::dropDownList(‘city_name1’,’’, array(), array(‘prompt’=>‘Select City’));

?>

Please suggest the correct code.

Thanks in advance.