单选按钮组 html 代码如下:
<input type="radio" name="cheakRadios" value="1" />
<input type="radio" name="cheakRadios" value="2" />
<input type="radio" name="cheakRadios" value="3" />
<input type="radio" name="cheakRadios" value="4" />
使用 jquery 语法设置值
$("input[name='cheakRadios'][value='2']").attr('checked','checked');
本文介绍如何使用HTML创建单选按钮组,并利用jQuery实现特定选项的默认选中状态。
1078

被折叠的 条评论
为什么被折叠?



