当选择父单选按钮时,如何启用子单选按钮?
<body>
<p>
<input type="radio" id="bdmain" name="educationalqualification" disabled="true" /> Bachelor's Degree
</p>
<ul>
<li>
<label>
<input type="radio" name="bd" disabled="true"/>
Four Years
</label>
</li>
<li>
<label>
<input type="radio"name="bd" disabled="true"/>
Exceeding Four Years
</label>
</li>
</ul>
</body>
最佳答案
尝试,
$("#bdmain").parent().next("ul").find("input[type='radio']").each(function(){
$(this).removeAttr("disabled");
});
关于javascript - 使用另一个单选按钮启用单选按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22111522/