判断radiobutton是否被选中

<tr>
<td class="label">是否显示:</td>
<td>
<?php if($cates_data[0]['is_show']==1){ ?>
<input type="radio" name="is_show" value="1" checked="true"> 是
<input type="radio" name="is_show" value="0"> 否
<?php }else{ ?>
<input type="radio" name="is_show" value="1" > 是
<input type="radio" name="is_show" value="0" checked="true"> 否
<?php } ?>


</td>
</tr>

posted @ 2014-04-15 14:47  麦田守望者~  阅读(2244)  评论(0编辑  收藏  举报