title: How to set radio button selected value using jquery
body: <p>How to set radio button selected value in <strong>javascript</strong>:</p>
  
  <p>HTML Code :</p>
  
  <pre><code>&lt;input type="radio" name="RBLExperienceApplicable" class="radio" value="1" &gt; 
  &lt;input type="radio" name="RBLExperienceApplicable" class="radio" value="0" &gt;
  
  
  &lt;input type="radio" name="RBLExperienceApplicable2" class="radio" value="1" &gt; 
  &lt;input type="radio" name="RBLExperienceApplicable2" class="radio" value="0" &gt;
  </code></pre>
  
  <p>ASPX Code</p>
  
  <pre><code>     &lt;asp:RadioButtonList ID="RBLExperienceApplicable" runat="server" class="radio"    RepeatDirection="Horizontal" EnableViewState="false"&gt;
              &lt;asp:ListItem Value="1" Text="Yes &amp;nbsp;&amp;nbsp;"&gt;&lt;/asp:ListItem&gt; 
                  &lt;asp:ListItem Value="0" Text="No"&gt;&lt;/asp:ListItem&gt;
          &lt;/asp:RadioButtonList&gt;
  
       &lt;asp:RadioButtonList ID="RBLExperienceApplicable2" runat="server" class="radio"  RepeatDirection="Horizontal" EnableViewState="false"&gt;
              &lt;asp:ListItem Value="1" Text="Yes &amp;nbsp;&amp;nbsp;"&gt;&lt;/asp:ListItem&gt; 
                  &lt;asp:ListItem Value="0" Text="No"&gt;&lt;/asp:ListItem&gt;
          &lt;/asp:RadioButtonList&gt;
  </code></pre>
  
  <p>// Some Code Fetch from db <br>
  // Based on db value script block will execute</p>
  
  <pre><code> &lt;script type="text/javascript"&gt;
          RadionButtonSelectedValueSet('1');
   &lt;/script&gt;
  </code></pre>
  
  <p>Script Block :    </p>
  
  <pre><code>function RadionButtonSelectedValueSet(SelectdValue) {
      $('#RBLExperienceApplicable').val(SelectdValue);
          //$("input[name='RBLExperienceApplicable']:checked").val(SelectdValue);
  }
  </code></pre>