Enable button after all radio button lists have a selection

Enable button after all radio button lists have a selection

Hello,

I'm new to jquery and I'm not sure how to approach this issue i'm having.  I have a web page that has 2 radio button lists on the main page and 4 more radio button lists on a modal popup when a user checks a checkbox the popup appears.  On the initial page loads the save button on the popup needs to be disabled.  I need to use jquery to enable the save button only when all 4 radio button lists have a selection.   If the clear button on the popup is clicked the radio button lists on the popup have the selection cleared and the save button needs to be disabled again.

Here is the HTML:
  1. <table>
  2.  <tr>
  3.   <td>
  4.    <asp:RadioButtonList ID="rbList1" data-req="1" runat="server" RepeatDirection="Vertical" TextAlign="right" >
  5. <asp:ListItem Value="BB" Text="Baseball" />
  6. <asp:ListItem Value="FB" Text="Football" />
  7.    </asp:RadioButtonList>
  8.  </td>
  9.  <td>
  10.    <asp:RadioButtonList ID="rbList2" runat="server" TextAlign="right" RepeatDirection="Vertical" RepeatLayout="Table">
  11. <asp:ListItem Value="1" Text="1st" />
  12. <asp:ListItem Value="2" Text="2nd" />
  13. <asp:ListItem Value="3" Text="3rd" />
  14. <asp:ListItem Value="4" Text="4th" />
  15.    </asp:RadioButtonList>
  16.   </td>
  17.   <td>
  18.    <asp:RadioButtonList ID="rbList3" runat="server" RepeatDirection="Vertical" TextAlign="right">
  19. <asp:ListItem Value="C" Text="Coach" />
  20. <asp:ListItem Value="GM" Text="General Manager" />
  21.    </asp:RadioButtonList>
  22.   </td>
  23.   <td>
  24.    <asp:RadioButtonList ID="rbList4" runat="server" RepeatDirection="Vertical" TextAlign="right" >
  25. <asp:ListItem Value="H" Text="Home" />
  26. <asp:ListItem Value="A" Text="Away" />
  27.    </asp:RadioButtonList>
  28.   </td>
  29.  </tr>
  30.  <tr><td>&nbsp;</td></tr>
  31.  <tr><td><button type="button" onclick="ClearSel('')">Clear</button></td></tr>
  32.  <tr><td><button id="btnSave" type="button" data-dismiss="modal">Save</button></td></tr>
  33. </table>

This is the jquery I have so far. It just disables the save button.
  1. <script type="text/javascript">
  2.   $(document).ready(function () {
  3. var button = $('#btnSave').prop('disabled', true);
  4.   });
  5. </script>

Any help pointing me in the right direction would be very appreciated.