title: How to get or set Selected index of the Radio Button List using jquery?
body: <p>How I can radio button checked using index..
  Below is my asp.net C# code for radion button list...</p>
  
  <pre><code>&lt;asp:RadioButtonList runat="server" ID="rdlCategory" CssClass="clsradio" AppendDataBoundItems="true" RepeatDirection="Horizontal" RepeatLayout="Flow" &gt;
  &lt;/asp:RadioButtonList&gt;
  </code></pre>
  
  <p>and Bind it using  C# dynamically..
  and Html looks like</p>
  
  <pre><code>&lt;span class="clsradio" id="ctl00_cphTop_rdlCategory"&gt;&lt;input type="radio" value="8" name="ctl00$cphTop$rdlCategory" id="ctl00_cphTop_rdlCategory_0"&gt; 
      &lt;label for="ctl00_cphTop_rdlCategory_0"&gt;category1&lt;/label&gt;
      &lt;input type="radio" value="11" name="ctl00$cphTop$rdlCategory" id="ctl00_cphTop_rdlCategory_1"&gt;
      &lt;label for="ctl00_cphTop_rdlCategory_1"&gt;category2&lt;/label&gt;
      &lt;input type="radio" value="22" name="ctl00$cphTop$rdlCategory" id="ctl00_cphTop_rdlCategory_2"&gt;
      &lt;label for="ctl00_cphTop_rdlCategory_2"&gt;category3&lt;/label&gt;
      &lt;input type="radio" value="33" name="ctl00$cphTop$rdlCategory" id="ctl00_cphTop_rdlCategory_3"&gt;
      &lt;label for="ctl00_cphTop_rdlCategory_3"&gt;category4&lt;/label&gt;
      &lt;input type="radio" value="34" name="ctl00$cphTop$rdlCategory" id="ctl00_cphTop_rdlCategory_4"&gt;
      &lt;label for="ctl00_cphTop_rdlCategory_4"&gt;category5&lt;/label&gt;
      &lt;/span&gt;
  </code></pre>
  
  <p>I want to add attribute checked=true to radio button by index value .<br>
  suppose, I passed index=2 then it should be selected Category2 .. <br>
  or also want to get selected (checked=true) radio button index using in jquery.. <br></p>
  
  <p>How I do this?</p>