title: Radio button for checked jquery in MVC
body: <p>I have MVC application and I am trying to check a default radio button to start with.</p>
  
  <p>My form code goes as follows:-</p>
  
  <pre><code>@using (Html.BeginForm(null, null, FormMethod.Post, new { id = "form" }))
  {
  
  &lt;div&gt;
  
  @Html.RadioButtonFor(model =&gt; model.StageGate, false) No
  @Html.RadioButtonFor(model =&gt; model.StageGate, true) Yes
  
  &lt;/div&gt;
  
  &lt;input type="submit" value="Submit" class="button" /&gt;
  
  }
  </code></pre>
  
  <p>Now at the beginning, No is default selected and after changing it to Yes when I submit the form I want it to be back to No.</p>
  
  <p>I tried many ways but it is not working.</p>
  
  <p>Some ways i tried is as follows:-</p>
  
  <pre><code>$("#StageGate").prop("checked", true)
  $("#StageGate").attr('checked', 'checked');
  </code></pre>
  
  <p>But nothing works.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Rendered HTML is:-</p>
  
  <pre><code>&lt;form action="/Url" id="form" method="post" novalidate="novalidate"&gt;        
  &lt;div&gt;
  
              &lt;input checked="checked" data-val="true" data-val-required="The StageGate field is required." id="StageGate" name="StageGate" type="radio" value="False"&gt; No
              &lt;input id="StageGate" name="StageGate" type="radio" value="True"&gt; Yes
  
          &lt;/div&gt;
  
          &lt;input type="submit" value="Submit" class="button"&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>Please guide me with a way that would help me send it back to No or Yes.</p>