<select name="customerid">
<volist name="customer" id="vo">
<option value="{$vo.id}" <if condition="$vo.id eq $task.customerid"> selected</if>>{$vo.name}{$vo.id}</option>
</volist>
</select>
能正常显示下拉菜单 $vo.id 和 $vo.name 也能正常显示
查看源代码,在 $vo.id 和 $task.customerid 相等的时候, 也出现了 selected。
但前台页面 下拉菜单却没有停留在 $vo.id 和 $task.customerid 相等的那一项。
前台页面,查看源文件,拷贝出来源代码, 写在html中, 效果是正确的。
问题出在哪里,特此求解.
最佳答案