radio button combinations to show hidden DIVs

radio button combinations to show hidden DIVs

I am new with both javascript and jQuery.  I found an older example here of grabbing multiple radio button checks and displaying certain DIVs as a result.  http://forum.jquery.com/topic/form-combination-of-checked-radio-buttons
I have a similar task and created the page discussed.  The script seems to display an OR result.  Radio button A or radio button K cause the correct a-k DIV to appear.  The problem is, I need an AND result.  I need a DIV to appear only if both A and K are checked.  The code originally posted is here:
  1. $(function() {
  2. $('a.button-show-advice').click(function() {
  3. var opts = '.advice-' + $('input:radio:checked'). // Extract advice selections
  4. map(function() { return $(this).val(); }).get().join(',.advice-');
  5. $('div.advice').hide().filter(opts).show(); // Hide all advices, then show matching ones
  6. return false;
  7. });
  8. });

  9. In the HTML:
  10. <div class="advice advice-a advice-k">...</div>
  11. <div class="advice advice-b advice-k">...</div>
  12. <div class="advice advice-c advice-s">...</div>
Can anyone tell me how this could be modified to produce an AND result?