select 标签判断value值相同 就selected高亮

时间:2022-08-17 06:03:45
                         
  我写的是里面嵌套php标签
                         <select name="bq_id[]" multiple="multiple">
<volist name="biaoqian" id="vo_bq">
<option value="{$vo_bq['id']}"
<php>
if(in_array($vo_bq['id'],$info['bq'])){
echo selected;
}
</php>
>{$vo_bq['title']}</option>
</volist>
</select>