2
<input type='checkbox' name='killerFeature' id='killerFeature'
<%= param('killerFeature') ? ' checked' : ''%>
/>
现在:
<select name="killerFeature" id="killerFeature" class="select">
<option value="1">Enable</option>
<option value="0">Disable</option>
</select>
我如何插入相同的检查(应该是 '选择' 现在我猜?)条件的选择现在?
这是一个Perl应用程序,使用Mojolicious web框架构建。
非常感谢您的帮助!
W3C要求有左手和右手。应该选择'selected',而不是'selected'''。 – vol7ron 2010-07-03 14:22:44