title: Enabling and Disabling Radio Buttons Depending on User Selection
body: <p>I'm looking to write jQuery to only enable radio buttons depending on which radio buttons are currently selected in accordance with some business logic.</p>
  
  <p>Essentially there are 3 groups of 3 radio buttons, which end up looking something like (my apologies for being verbose with this example HTML, but hoping this will show what I mean):</p>
  
  <pre><code>&lt;p&gt;
    &lt;label for="group_one"&gt;Group One&lt;/label&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;div class="group_one"&gt;
      &lt;div id="group_one_choice_one"&gt;
        &lt;label for="group_one_choice_one"&gt;Choice One&lt;/label&gt;
        &lt;br /&gt;
        &lt;input checked="checked" id="choice_one" type="radio" value="1" /&gt;
        &lt;br /&gt;
      &lt;/div&gt;
      &lt;div id="group_one_choice_two"&gt;
        &lt;label for="group_one_choice_two"&gt;Choice Two&lt;/label&gt;
        &lt;br /&gt;
        &lt;input id="group_one_choice_two" type="radio" value="2" /&gt;
        &lt;br /&gt;
      &lt;/div&gt;
      &lt;div id="group_one_choice_three"&gt;
        &lt;label for="group_one_choice_three"&gt;Choice Three&lt;/label&gt;
        &lt;br /&gt;
        &lt;input id="choice_three" type="radio" value="3"/ &gt;
        &lt;br /&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;label for="group_two"&gt;Group Two&lt;/label&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;div class="group_two"&gt;
      &lt;div id="group_two_choice_one"&gt;
        &lt;label for="group_two_choice_one"&gt;Choice One&lt;/label&gt;
        &lt;br /&gt;
        &lt;input checked="checked" id="choice_one" type="radio" value="1" /&gt;
        &lt;br /&gt;
      &lt;/div&gt;
      &lt;div id="group_two_choice_two"&gt;
        &lt;label for="group_two_choice_two"&gt;Choice Two&lt;/label&gt;
        &lt;br /&gt;
        &lt;input id="group_two_choice_two" type="radio" value="2" /&gt;
        &lt;br /&gt;
      &lt;/div&gt;
      &lt;div id="group_two_choice_three"&gt;
        &lt;label for="group_two_choice_three"&gt;Choice Three&lt;/label&gt;
        &lt;br /&gt;
        &lt;input id="choice_three" type="radio" value="3"/ &gt;
        &lt;br /&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;label for="group_three"&gt;Group Three&lt;/label&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;div class="group_three"&gt;
      &lt;div id="group_three_choice_one"&gt;
        &lt;label for="group_three_choice_one"&gt;Choice One&lt;/label&gt;
        &lt;br /&gt;
        &lt;input checked="checked" id="choice_one" type="radio" value="1" /&gt;
        &lt;br /&gt;
      &lt;/div&gt;
      &lt;div id="group_three_choice_two"&gt;
        &lt;label for="group_three_choice_two"&gt;Choice Two&lt;/label&gt;
        &lt;br /&gt;
        &lt;input id="group_three_choice_two" type="radio" value="2" /&gt;
        &lt;br /&gt;
      &lt;/div&gt;
      &lt;div id="group_three_choice_three"&gt;
        &lt;label for="group_three_choice_three"&gt;Choice Three&lt;/label&gt;
        &lt;br /&gt;
        &lt;input id="choice_three" type="radio" value="3"/ &gt;
        &lt;br /&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>Where it gets tricky is the logic needed to determine which radio buttons to display and which to enable. A user must select one choice from each group, but cannot repeat the same choice from one group to another.</p>
  
  <p>Ideally when the user gets to the page, all of the radio buttons would be available but unselected.</p>
  
  <p>If the user were to first select (for example) Choice Two in Group Three, the script should then disable Choice Two in both Group One and Group Two. If the user then selects Choice Three in Group Two, it should then only enable Choice One in Group One, and so on.</p>
  
  <p>Any help would be very, very much appreciated. I would post the jQuery I've been attempting to write to solve this problem but I don't think I've been going about this very well and would love any help working through it.  Thanks!</p>