Yii- Combobox Not Working

I’m new to Yii framework. Now, I’m using ext.combobox.EJuiComboBox to create a dependent dropdown.

View

</br>

&lt;div class=&quot;form&quot;&gt;





&lt;?php &#036;form=&#036;this-&gt;beginWidget('CActiveForm', array(


	'id'=&gt;'bill-form',


	'enableAjaxValidation'=&gt;false,


)); ?&gt;





	&lt;p class=&quot;note&quot;&gt;Fields with &lt;span class=&quot;required&quot;&gt;*&lt;/span&gt; are required.&lt;/p&gt;





	&lt;?php echo &#036;form-&gt;errorSummary(&#036;model); ?&gt;








	&lt;div class=&quot;row&quot;&gt;


		&lt;?php echo &#036;form-&gt;labelEx(&#036;model,'company_id'); ?&gt;


            &lt;?php


&#036;this-&gt;widget('ext.combobox.EJuiComboBox', array(


    'model' =&gt; &#036;model,


    'attribute' =&gt; 'company_id',


    // data to populate the select. Must be an array.


    //'data' =&gt; &#036;model-&gt;getAllModels(),


    'data' =&gt; CHtml::listData(Company::model()-&gt;findAll(), 'id', 'name'),


    // options passed to plugin


    // Options passed to the text input


    'options' =&gt; array(


        // JS code to execute on 'select' event, the selected item is


        // available through the 'item' variable.


        


    ),


    // Options passed to the text input


    'htmlOptions' =&gt; array(


			'ajax' =&gt; array(


				'type'=&gt;'POST',


				'url'=&gt;CController::createUrl('bill/getProjects'),


				'update'=&gt;'#'.CHtml::activeId(&#036;model,'project_id'),


                                'beforeSend' =&gt; 'function(){


                                    &#036;(&quot;#page&quot;).addClass(&quot;loading&quot;);}',


                                'complete' =&gt; 'function(){


                                    &#036;(&quot;#page&quot;).removeClass(&quot;loading&quot;);


                                    &#036;(&quot;#' . CHtml::activeId(&#036;model,'project_id') . '&quot;).trigger(&quot;change&quot;);


                                }',


			))


)); ?&gt;





		&lt;?php echo &#036;form-&gt;error(&#036;model,'company_id'); ?&gt;


	&lt;/div&gt;





    &lt;div class=&quot;row&quot;&gt;


		&lt;?php echo &#036;form-&gt;labelEx(&#036;model,'project_id'); ?&gt;


		&lt;?php echo &#036;form-&gt;dropDownList(&#036;model,'project_id', CHtml::listData(Project::model()-&gt;findAll('company_id= :company', array(':company'=&gt;&#036;model-&gt;company_id)), 'id', 'name'), array(


			'ajax' =&gt; array(


				'type'=&gt;'POST',


				'url'=&gt;CController::createUrl('bill/getTasks'),


				'update'=&gt;'#'.CHtml::activeId(&#036;model,'task_id'),


                                'beforeSend' =&gt; 'function(){


                                    &#036;(&quot;#page&quot;).addClass(&quot;loading&quot;);}',


                                'complete' =&gt; 'function(){


                                    &#036;(&quot;#page&quot;).removeClass(&quot;loading&quot;);}',


			)));


		?&gt;


		&lt;?php echo &#036;form-&gt;error(&#036;model,'project_id'); ?&gt;


	&lt;/div&gt;





	&lt;div class=&quot;row&quot;&gt;


		&lt;?php echo &#036;form-&gt;labelEx(&#036;model,'task_id'); ?&gt;


		&lt;?php echo &#036;form-&gt;dropDownList(&#036;model,'task_id', CHtml::listData(Task::model()-&gt;findAll('project_id= :project', array(':project'=&gt;&#036;model-&gt;project_id)), 'id', 'name')); ?&gt;


		&lt;?php echo &#036;form-&gt;error(&#036;model,'task_id'); ?&gt;


	&lt;/div&gt;





	&lt;div class=&quot;row&quot;&gt;


		&lt;?php echo &#036;form-&gt;labelEx(&#036;model,'foo'); ?&gt;


		&lt;?php echo &#036;form-&gt;textField(&#036;model,'foo',array('size'=&gt;60,'maxlength'=&gt;64)); ?&gt;


		&lt;?php echo &#036;form-&gt;error(&#036;model,'foo'); ?&gt;


	&lt;/div&gt;





	&lt;div class=&quot;row buttons&quot;&gt;


		&lt;?php echo CHtml::submitButton(&#036;model-&gt;isNewRecord ? 'Create' : 'Save'); ?&gt;


	&lt;/div&gt;





&lt;?php &#036;this-&gt;endWidget(); ?&gt;

But, it isn’t working with this combobox. How can i make it work, such that when i select value from first the dependent should get automatically selected.

Though I selected the value from the first drpdownlist, based on this value nothing is displayed in second dropdownlist. No errors or exceptions also