echo $form->dropDownList($moveAssign,'department',CHtml::listData(ModelName::model()->findAll(array('condition'=>'enable=:enable','params'=>array('enable'=>'1'))),'department_id','department_title'),array('empty'=>'Select Department','ajax' => array(
'type'=>'POST',
'url'=>CController::createUrl('tickets/staffsList'),
'update'=>'#staff')));
echo $form->dropDownList($model,'staff',array(),array('id'=>'staff'));
Please help.
ReplyDeleteI want to send an array of selected values via ajax in a multiple select dropdown menu.