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=&gt;'New England',1=&gt;'Middle Atlantic',3=&gt;'East North Central'),





array(


    'prompt'=&gt;'Select Region',


    'ajax' =&gt; array(


        'type'=&gt;'POST',


        'url'=&gt;Yii::app()-&gt;createUrl('site/loadcities'),


        'data'=&gt;array('region_id'=&gt;'js:this.value'),


        'success'=&gt;'function(html)


                   {


                    jQuery(&quot;#city_name&quot;).html(html)


                    }' ,


                    array(


                    'type'=&gt;'POST',


                   'url'=&gt;Yii::app()-&gt;createUrl('site/loadcities1'),


                   'data'=&gt;array('region_id'=&gt;'js:this.value'),


                     'success'=&gt;'function(html)


                   {


                       jQuery(&quot;#city_name1&quot;).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.