[已解决] 如何设置修改时,下拉菜单中的指定项为选中

浏览:4325 发布日期:2013/08/16 分类:求助交流
模板中 {$task.customerid} 能正常显示数字

<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中, 效果是正确的。

问题出在哪里,特此求解.
最佳答案
评论( 相关
后面还有条评论,点击查看>>