使用form_dropdown中隐藏选项标记时遇到一些问题
如何隐藏每个j_status行==关闭,然后可以隐藏选项标签
这是我的剧本
<?php
$dev='';
foreach($j as $r)
{
if(($r->j_status)=='open')
$dev='echo ""';
else if(($r->j_status)=='close')
$dev='echo hidden';
}
echo form_dropdown("id_j",$list_jid,"default",$dev,"id='some_id'");
?>
答案 0 :(得分:0)
<?php
$dev='';
foreach($j as $r)
{
if(($r->j_status)=='open')
$dev='echo ""';
else if(($r->j_status)=='close')
$dev='echo hidden';
echo form_dropdown("id_j",$list_jid,"default",$dev,"id='some_id'");//place here
}
?>