title: How to check the multiple indicdual radio buttons in jQuery?
body: <p>In my page so many group radio buttons are there like this.</p>
  
  <p>first div "Request-1" only default checked.After button click I am calling the below jQuery function to assign selected value to other div radio buttons.</p>
  
  <pre><code>if ($("#Request-1:input:checked").length &gt; 0) {
  
              $("#Request-2").attr('checked', 'checked');
              $("#Request-3").attr('checked', 'checked');
              $("#Request-4").attr('checked', 'checked');
          }
          else if ($("#DRequest-1:input:checked").length &gt; 0) {
              $("#DRequest-2").attr('checked', 'checked');
              $("#DRequest-3").attr('checked', 'checked');
              $("#DRequest-4").attr('checked', 'checked');
  
          }
  </code></pre>
  
  <p>But only #REquest-4 is checking other radio buttons are not checking .Please tell me how to check all radio buttons .</p>
  
  <pre><code> &lt;div id="choose-1"&gt;
  &lt;input id="Request-1"  type="radio" name="request-type"  checked="checked"/&gt;Data REquest
  
  
  
       &lt;input id="DRequest-1"  type="radio" name="request-type"/&gt;D Request Data
      &lt;/div&gt;
   &lt;div id="choose-2"&gt;
      &lt;input id="Request-2"  type="radio" name="request-type" /&gt;Data REquest
  
        &lt;input id="DRequest-2"  type="radio" name="request-type"/&gt;D Request Data
      &lt;/div&gt;
   &lt;div id="choose-3"&gt;
      &lt;input id="Request-3"  type="radio" name="request-type" /&gt;Data REquest
  
        &lt;input id="DRequest-13"  type="radio" name="request-type"/&gt;D Request Data
      &lt;/div&gt;
   &lt;div id="choose-4"&gt;
      &lt;input id="Request-4"  type="radio" name="request-type"  checked="checked"/&gt;Data REquest
  
        &lt;input id="DRequest-4"  type="radio" name="request-type"/&gt;D Request Data
      &lt;/div&gt;
  </code></pre>