‘prompt’=>’Select Regional’,
‘onChange’=>’alert(“changed value : ” + $(this).val());’,  // message box
‘ajax’=>array(

‘type’=>’POST’,
‘url’=>CController::createUrl(‘City/changeprovince’),
‘update’=>’#province_code’,

 

* Set WIDTH combobox

$form->dropDownList($model,’dashboard_code’,CHtml::listData(TblDashboard::model()->findAll(),’dashboard_code’,’dashboard_name’),array(’empty’=>’Choose Dashboard’,‘style’=>’width:242px’));

 

Sumber : Yii