使用的是C#语言,.Net+Jquery Mobile 框架开发
1.使用水平组切换操作
<fieldset id="Tfdset1" data-role="controlgroup" data-type="horizontal" class="" data-mini="true" style="margin: 0px;"> <input type="radio" name="Tradio_1" id="Tradio11" value="1"> <label for="Tradio11" style="width:40px;text-align:center;">签 到</label> <input type="radio" name="Tradio_1" id="Tradio21" value="2"> <label for="Tradio21" style="width:40px;text-align:center;">签 退</label> </fieldset>
设置label的长度等同于设置选项长度
Jquery设置选中:
$("#Pradio21").attr("checked", "checked");
$("input[type=‘radio‘]").checkboxradio("refresh");
原文:http://www.cnblogs.com/sky-gfan/p/5135102.html