title: jQuery Select all Radio button group
body: <p>I'm working on a long form that has several radio button groups.  </p>
  
  <p>At the bottom there is a radio button "No All".  When it's selected I would like to make it so that all of the "N" radio buttons are selected, but I can't get it to work.  Here is a simplified version of the code:</p>
  
  <p>jQuery:</p>
  
  <pre><code>$(document).ready(function(){
  //initially hide the Remove All Questions
  $("div.#removeAllquest").hide();
  
  ////////////  Show Remove All Questions if radio button selected 
  $("input.#RemoveAll").click(function() {
    if ($(this).is(':checked'))
      $("input:radio [class*='radioR']").attr("checked",true); 
    else
  $("input:radio [class*='radioR']").attr("checked",false); 
  });
  </code></pre>
  
  <p>});</p>
  
  <p>Form: </p>
  
  <pre><code>&lt;table&gt;
    &lt;tr&gt;
      &lt;td&gt;Y&lt;input type="radio" name="row1" value="row1col1" class="q123col1"&gt;&lt;/td&gt;
      &lt;td&gt;N&lt;input type="radio" name="row1" class="radioR" value="row1col2"&gt;&lt;/td&gt;
      &lt;td&gt;M&lt;input type="radio" name="row1" value="row1col3" class="q123col3"&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Y&lt;input type="radio" name="row2" value="row2col1" class="q123col1"&gt;&lt;/td&gt;
      &lt;td&gt;N&lt;input type="radio" name="row2" class="radioR" value="row2col2"&gt;&lt;/td&gt;
      &lt;td&gt;M&lt;input type="radio" name="row2" value="row2col3" class="q123col3"&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Y&lt;input type="radio" name="row3" value="row3col1" class="q123col1"&gt;&lt;/td&gt;
      &lt;td&gt;N&lt;input type="radio" name="row3" class="radioR" value="row3col2"&gt;&lt;/td&gt;
      &lt;td&gt;M&lt;input type="radio" name="row3" value="row3col3" class="q123col3"&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt; 
      &lt;td colspan="2"&gt;No All &lt;/td&gt;
      &lt;td&gt;
        &lt;input name="RemoveAll" id="RemoveAll" type="radio" value="Y"&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>What am I doing wrong?</p>