title: submit the checked radio button value on form submit
body: <p>This is my code for radio button and a textbox to check the selected value is properly got from radio button:
  I want that radio button value should be submited on form submit.</p>
  
  <pre><code>&lt;form name="send-form" class="send-form" method="POST"&gt;
  
      &lt;input name="n1" type="text" class="Textbox" id="n1" /&gt;
      &lt;input name="button" type="submit" class="SHN" id="button" value="GO"/&gt;
  
      @Html.RadioButton("Yes", "0", true) Yes;
      @Html.RadioButton("No","1", false ) No;
  &lt;/form&gt;
  </code></pre>
  
  <p>This is the code to submit the radio button value using jquery:</p>
  
  <pre><code>$(".send-form").submit(function(e){
          e.preventDefault();
  
          // get selected value
          var selected = $("input[type='radio'][name='option']:checked");
  
          // check if an option was selected
          if (selected.length &gt; 0) {
              selectedValue = selected.attr("id");
              $.post('somefile', {"option" : selectedValue}, function() {
  
                           // whatt to do here  
  
              });     
          }
      });
  </code></pre>
  
  <p>This is the code to assign the radio value to the text box.</p>
  
  <pre><code>function getRadio() {
          var n1 = document.getElementById('n1');
          var button = document.getElementById(radio);
          n1.value = button.value;
      }
  </code></pre>