I’m creating a simple DISC profile test, where in each question have 8 radio button where if I check the Great “M” radio button, the Great “L” radio button will be disabled and cannot be selected and you must choose other like Overpowered, Kind, or Brave. The form looks like this,

I’m trying with jQuery,
$(document).ready(function(e) {
var Form = $("[name=DISC]");
Form.find("input.Most").each(function() {
$(this).change(function() {
$(this).next().attr("disabled", "disabled");
$(this).prev().attr("disabled");
});
});
Form.find("input.Least").each(function() {
$(this).change(function() {
$(this).prev().attr("disabled","disabled");
$(this).next().attr("disabled");
});
});
});
But, if I check the Great “M” radio button, and later I change it into Overpowered the Great “L” radio button still disabled, and so with the other “L” buttons, if I change the “L” button later, the the “M” is still disabled, looks like this,

The results I want to get is, If I choose M for Kind I cannot choose L for Kind. Any help? Sorry for bad English. 🙂
Create two groups of buttons (i.e give the buttons the same
nameattribute) and the default behaviour would be that only one button from each group can be checked at a time.To forbid the same attribute being marked as L and M, you can use the following script:
FIDDLE