控制某个radio选中
$("input[name='radio']").get(index).checked = true;
$("input[name='radio'][value='value']").attr("checked",true);
获取radio选中的值
$('input[name=radio]:checked').val();
本文介绍了如何使用jQuery来控制页面上的Radio按钮。具体包括设置特定的Radio按钮为选中状态的方法,以及如何获取当前被选中的Radio按钮的值。
控制某个radio选中
$("input[name='radio']").get(index).checked = true;
$("input[name='radio'][value='value']").attr("checked",true);
获取radio选中的值
$('input[name=radio]:checked').val();

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