下拉框 带提示

  1. <?=$form->field(
  2. $model,
  3. 'unit_id',
  4. [
  5. 'inputOptions' => [
  6. 'class' => 'required',
  7. ],
  8. 'template' => '{input}',
  9. ]
  10. )->dropDownList($list_unit,['prompt'=>'请选择计数单位'])?>





posted on 2015-12-24 17:12  叫我小洋  阅读(361)  评论(0编辑  收藏  举报

导航