title: Check whether specific radio button is checked
body: <p>I'm having trouble after looking at the jQuery docs.  I'm just trying to return true/false in one my my jquery methods depending on the check of a certain radiobutton and if it's selected or not</p>
  
  <p>I've tried several things but have not been able to get this right:</p>
  
  <pre><code>&lt;input type="radio" runat="server" name="testGroup" id="test1" /&gt;&lt;label for="&lt;%=test1.ClientID %&gt;" style="cursor:hand" runat="server"&gt;Test1&lt;/label&gt;
  &lt;input type="radio" runat="server" name="testGroup" id="test2" /&gt;&lt;label for="&lt;%=test2.ClientID %&gt;" style="cursor:hand" runat="server"&gt;Test2&lt;/label&gt;
  &lt;input type="radio" runat="server" name="testGroup" id="test3" /&gt; &lt;label for="&lt;%=test3.ClientID %&gt;" style="cursor:hand"&gt;Test3&lt;/label&gt;
  </code></pre>
  
  <p>and in my method I have this:</p>
  
  <pre><code>return $("input[@name='test2']:checked");
  </code></pre>
  
  <p>I'm getting an undefined on <code>$("input[@name='test2']:checked");</code></p>
  
  <p>UPDATED:</p>
  
  <p>example:</p>
  
  <pre><code>&lt;input type="radio" runat="server" name="radioGroup"  id="payPalRadioButton" value="paypalSelected" /&gt; 
  </code></pre>
  
  <p>this returns 'undefined' still: </p>
  
  <pre><code>$("input[@name=radioGroup]:checked").attr('payPalRadioButton'); 
  </code></pre>
  
  <p>If I try this, I get 'false' even if I select the radio button:</p>
  
  <pre><code>$('input:radio[name=radioGroup]:checked').val() == 'paypalSelected'
  </code></pre>