最新消息: 新版网站上线了!!!

dropdownList Yii ajax

  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'));

转载请注明:谷谷点程序 » dropdownList Yii ajax