title: How to get the radio button Id value using jquery or javascript
body: <p>I have this code in my view.</p>
  
  <pre><code>&lt;%using (Html.BeginForm("X", "Y", FormMethod.Post, new { @id = "XSS" }))
    { %&gt;
  
      &lt;fieldset&gt;
          &lt;legend&gt;Select Selection Type&lt;/legend&gt;
  
          &lt;label&gt;Default Selections:&lt;/label&gt;
             &lt;input type="radio" id="Default Selections" name="selection" /&gt;
             &lt;br /&gt;
             &lt;label&gt;Existing Selections:&lt;/label&gt;
             &lt;input type="radio" id="Existing Selections" name="selection" /&gt;
      &lt;/fieldset&gt;
  
   &lt;input type="submit" value="submit"&gt;
  &lt;% } %&gt;
  </code></pre>
  
  <p>In my Controller post Action result I am trying to get the value of this selection i am doing</p>
  
  <pre><code>collection["selection"]
  </code></pre>
  
  <p>I am not able to get the radio button Id which I checked. I am getting "on" but How do I need to know which radio button was selected in my view?</p>
  
  <p>Thanks </p>