点击label标签选中radio

原创 1130331201 随笔 html 103阅读 2018-03-01 13:28:36 举报

实例1:
<label for="man">
<input type="radio" value="男" name="man" id="man"/>

</label>
<label for="man2">
<input type="radio" value="女" name="man" id="man2"/>

</label>

实例2:
<input type="radio" name="mark" value="option1" id="invest_target_r1">
<label class="radio-label" for="invest_target_r1"> 男 </label>
<input type="radio" name="mark" value="option2" id="invest_target_r2">
<label class="radio-label" for="invest_target_r2"> 女 </label>

评论 ( 0 )
最新评论
暂无评论

赶紧努力消灭 0 回复