答案 0 :(得分:1)
尝试这样的事情
$("input[name='os']").change(function (){
$("input[name='backend']").attr("checked", false);
$("input[name='backend']").attr("disabled",false);
$("#"+$(this).attr("relatedto")).attr("disabled",true);
});
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<input name="os" type="radio" relatedto="interface1">Os1<br/>
<input name="os" type="radio" relatedto="interface1">Os2<br/>
<input name="os" type="radio" relatedto="interface2">Os3<br/>
<input name="os" type="radio" relatedto="interface2">Os4<br/>
<br/>
<br/>
<hr/>
<input name="backend" type="radio" id="interface1">cpanel<br/>
<input name="backend" type="radio" id="interface2">cpanel<br/>