根据input name 获取 type
$("input[name='isHouseProperty']").attr("type")
根据id 设置单选按钮选中状态
$('#isKeyIndustry0').attr('checked', 'checked');
获取选中值
$("input[name='isKeyIndustry']:checked").val();
重置页面所有单选按钮的选中状态
$("input[type='radio']").removeAttr('checked');
单选按钮点击两次,取消选中状态
$("input[type='radio']").bind("click",radioTwoChecked);
function radioTwoChecked(){
var $radio = $(this);
if ($radio.data('waschecked') == true)
{
$radio.prop('checked', false);
$radio.data('waschecked', false);
}else{
$radio.prop('checked', true);
$radio.data('waschecked', true);
}
$radio.siblings('input[type="radio"]').data('waschecked', false);
}