title: how to post form in MVC 3.0 razor on radio button change
body: <p>I want to active and inactive user account on click on form post. I am using </p>
  
  <pre><code>   @using (Ajax.BeginForm("SetStatus", "Home", null, new AjaxOptions() { HttpMethod = "Post" }, null))
                              {
                                    if (res.Status == 1)
                                    { 
  
                                          &lt;span class="userStatusSpan statusActive"&gt;&lt;input type="radio" name="status" value="1" checked="checked" /&gt;Active&lt;/span&gt;
                                          &lt;span class="userStatusSpan statusInactive"&gt;&lt;input type="radio" name="status" value="0"  /&gt;Inactive&lt;/span&gt;
                                    }
                                    else
                                    {
                                           &lt;span class="userStatusSpan statusActive"&gt;&lt;input type="radio" name="status" value="1" /&gt;Active&lt;/span&gt;
                                          &lt;span class="userStatusSpan statusInactive"&gt;&lt;input type="radio" name="status" checked="checked" value="0"  /&gt;Inactive&lt;/span&gt;
  
                                    }
                            }
  </code></pre>
  
  <p>Can anyone please tell me how to post form on check box change?</p>