title: Help with javascript to hide radio buttons
body: <p>I got this code on here recently</p>
  
  <pre><code>&lt;script type='text/javascript'&gt;
   $('#discountselection').hide();
  
      $('#No').click(function(){
          $('#discountselection').hide();
      });
  
      $('#Yes').click(function(){
          $('#discountselection').show();
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>The aim being to hide a drop down box depending on whether the radio buttons yes and no were selected. Here is my code:</p>
  
  <pre><code>&lt;td width="338"&gt;Would You like to avail of our multiyear discounts?*
    &lt;br /&gt;See &lt;a href="Pricing"&gt;Pricing&lt;/a&gt; for more details
  &lt;/td&gt;
  &lt;td colspan="4"&gt;
    &lt;input name="discount" type="radio" id="Yes" value="Yes" /&gt;Yes
    &lt;input name="discount" type="radio" id="No" value="No" checked="checked" /&gt;No&lt;br /&gt;  
       &lt;select class="purple" name="discountselection" id="discountselection"&gt;
           &lt;option value="1" selected="selected"&gt;1 Year&lt;/option&gt;
           &lt;option value="2"&gt;2 Years&lt;/option&gt;
           &lt;option value="3"&gt;3 Years&lt;/option&gt; 
        &lt;/select&gt;                  
  &lt;/td&gt;
  </code></pre>
  
  <p>I have the javascript placed in between the head tags, but for some reason this just isn't working for me. I'm not familiar with javascript at all. If any one could see where I am going wrong this would be a big help. 
  Thanks.</p>