判断radiobutton是否被选中

mac2022-06-30  83

<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>

转载于:https://www.cnblogs.com/hgj123/p/3666225.html

最新回复(0)