//选择type为radio的input设置选中
$("input:radio[value='6']").attr('checked', 'true');
//通过name属性获取选中的个数
$('input[name=name]:checked').length
//选择type为radio的input设置选中
$("input:radio[value='6']").attr('checked', 'true');
//通过name属性获取选中的个数
$('input[name=name]:checked').length