title: jquery show/hide element on multiple radio button selection
body: <p>I'm very new to web development, if you can even call it that, especially jQuery and I've hit a brick wall with a jQuery.</p>
  
  <p>What I have is a form(for selection purposes), and a series of Paypal buttons. The function I need to perform is a show/hide but only if a particular selection of three radio buttons has been selected. Each three combination selection is to show/hide a corresponding paypal button. </p>
  
  <p>I can show/hide fine with a single form radio selection, but not for the combination.</p>
  
  <p>You'll have to excuse my cabbage coding as I'm still only a beginner, the code could be alot more optimized, thankfully it's only a low traffic site/small market its going into.BIG kudos to anyone who can help me.</p>
  
  <p>Have managed to hide all the buttons fine. Script below </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  $(document).ready(function(){
  
      //Hide div w/id extra
           $("#button1,#button2,#button3,#button4,#button5,
               #button6,#button7,#button8,#button9,#button10,
               #button11, #button12, #button13, #button14,#button15,
               #button16,#button17,#button18,#button19,#button20,
                #button21,#button22,#button23,#button24,                 
                #button25,#button26,#button27").css("display","none");
  
  });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>Here is the form html</p>
  
  <pre><code>    &lt;form action="order-lamb" method="post" id="order"&gt;
     &lt;input type="hidden" name="pack" value="whole" /&gt;
     &lt;div class="form-item leg option left2"&gt;
        &lt;h3&gt; Choose from the following Leg options&lt;/h3&gt;
        &lt;p&gt;Choose what leg options you would like:&lt;/p&gt;
        &lt;label for="leg-one-of-each"&gt;&lt;input type="radio" name="leg" value="each" id="leg-one-of-each" /&gt;1 x Carvery and 1 x Butterfly Legs&lt;/label&gt;
        &lt;p class="or"&gt;OR&lt;/p&gt;
        &lt;label for="leg-both-carvery"&gt;&lt;input type="radio" name="leg" value="carvery" id="leg-both-carvery" /&gt;2 x Carvery Legs&lt;/label&gt;
        &lt;p class="or"&gt;OR&lt;/p&gt;
        &lt;label for="leg-both-butterfly"&gt;&lt;input type="radio" name="leg" value="butterfly" id="leg-both-butterfly" /&gt; 2 x Butterfly Legs&lt;/label&gt;
     &lt;/div&gt;
     &lt;div class="form-item loin option right2 "&gt;
        &lt;h3&gt; Choose from the following Loin options:&lt;/h3&gt;
        &lt;p&gt;Choose what loin options you would like:&lt;/p&gt;
        &lt;label for="loin-one-of-each"&gt;&lt;input type="radio" name="loin" value="loin-each" id="loin-one-of-each" /&gt;1 x Nolsette Loin and 1 x Backstrap &amp;amp; Tenderloin&lt;/label&gt;
        &lt;p class="or"&gt;OR&lt;/p&gt;
        &lt;label for="loin-both-nolsette"&gt;&lt;input type="radio" name="loin" value="nolsette" id="loin-both-nolsette" /&gt;2 x Nolsette Loins &lt;/label&gt;
        &lt;p class="or"&gt;OR&lt;/p&gt;
        &lt;label for="loin-both-backstrap"&gt;&lt;input type="radio" name="loin" value="backstrap-tenderloin" id="loin-both-backstrap" /&gt;2 x Backstrap &amp;amp; Tenderloins &lt;/label&gt;
     &lt;/div&gt;
     &lt;div class="cf"&gt;&lt;/div&gt;
     &lt;div class="form-item shoulder option left2"&gt;
        &lt;h3&gt;Choose from the following Shoulder options:&lt;/h3&gt;
        &lt;p&gt;Choose what shoulder option you would like:&lt;/p&gt;
        &lt;label for="shoulder-one-of-each"&gt;&lt;input type="radio" name="shoulder" value="shoulder-each" id="shoulder-one-of-each" /&gt; 1 x Bone and Rolled and 1 x French Danish&lt;/label&gt;
        &lt;p class="or"&gt;OR&lt;/p&gt;
        &lt;label for="shoulder-both-bone-and-rolled"&gt;&lt;input type="radio" name="shoulder" value="bone-and-rolled" id="shoulder-both-bone-and-rolled" /&gt;2 x Bone and Rolled&lt;/label&gt;
        &lt;p class="or"&gt;OR&lt;/p&gt;
        &lt;label for="shoulder-both-french-danish"&gt;&lt;input type="radio" name="shoulder" value="french-danish" id="shoulder-both-french-danish" /&gt;2 x French Danish&lt;/label&gt;
     &lt;/div&gt;
     &lt;div class="form-item included right2"&gt;
        &lt;h3&gt;You will also get:&lt;/h3&gt;
        &lt;p&gt;These are included:&lt;/p&gt;
        &lt;span class="choice selected"&gt;2 x Fully Frenched Racks &lt;/span&gt;
        &lt;p class="or"&gt;AND&lt;/p&gt;
        &lt;span class="choice selected"&gt;1 x Coastal Spring Lamb Mince Pack &lt;/span&gt; &lt;/span&gt;    
        &lt;p class="or"&gt;AND&lt;/p&gt;
        &lt;span class="choice selected"&gt;1 x Coastal Spring Lamb Patty Pack&lt;/span&gt; &lt;/span&gt;
     &lt;/div&gt;
     &lt;div class="clear"&gt;&lt;/div&gt;
     &lt;div class="align-right" /&gt;
     &lt;div class="form-item submit"&gt;
        &lt;p class="error"&gt;You must select an option in each category.&lt;/p&gt;
        &lt;input type="image" name="submit" src="images/buttons-and-logos/awaiting-payment.png" id="submit" border="0" /&gt;
        &lt;p class="paypal"&gt;You will receive a confirmation email when your payment has been processed via paypal. &lt;br /&gt;Price includes freight and GST.&lt;br /&gt;&lt;/p&gt;
     &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>