title: Submit a form when Bootstrap radio button clicked
body: <p>I have a form with a radio-button group:</p>
  
  <pre><code>&lt;form name="search" class="form-inline" asp-controller="controller" asp-action="action" method="get"&gt;
    &lt;div class="btn-group" data-toggle="buttons"&gt;
      &lt;label onclick="document.search.submit()" class="btn btn-default @ActiveTime("AM")" onclick="document.search.submit()"&gt;
        &lt;input type="radio" name="time" value="am" autocomplete="off"&gt;AM
      &lt;/label&gt;
      &lt;label onclick="document.search.submit()" class="btn btn-default @ActiveTime("PM")" onclick="document.search.submit()"&gt;
        &lt;input type="radio" name="time" value="pm" autocomplete="off"&gt;PM
      &lt;/label&gt;
   &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><code>@ActiveTime</code>:</p>
  
  <pre><code>public string ActiveTime(string time)
  {
      if (ViewData["time"].ToString() == time) { return "active"; }
      return "";
  }
  </code></pre>
  
  <p>Relevant section of <code>controller\action</code>:</p>
  
  <pre><code>string time = ( (String.IsNullOrEmpty(HttpContext.Request.Query["time"].ToString())) ? "am" : HttpContext.Request.Query["time"].ToString() ).ToUpper();
  ViewData["time"] = time;
  </code></pre>
  
  <p>Clicking the AM or PM label will submit the form, but doesn't include the radio button's value.  What am I missing?</p>