Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在我的选择中添加一个 id,但我不知道该怎么做。
echo $this->form->select("alergias2", ["Alergias"=>$alergias],["multiple"=>true]);
我已经尝试如下。
echo $this->form->select("alergias2", array('id'=> 'alergia'), ["Alergias"=>$alergias],["multiple"=>true]);
我是这样解决的。
echo $this->form->select("alergias2", ["Alergias"=>$alergias],["multiple"=>true , "id"=>"alergia"]);