是
否
1.获取值
$("input[name='killOrder']:checked").val();
$('input:radio:checked').val();
$("input[type='radio']:checked").val();
$(":radio[checked]").each(function(radio){alert($(this).val());
注意:有时attr() 无法起到作用,attr() 与 prop() 的区别详见文章。
https://blog.csdn.net/qq_40015157/article/details/110823718
2.设置第一个radio为选中值:
$('input:radio:first').prop('checked', 'checked');
$('input:radio:first').prop('checked', true);
$('input:radio:first').attr('checked', 'checked');
$('input:radio:first').attr('checked', true);
3.设置最后一个radio为选中值:
$('input:radio:last').prop('checked', 'chec