title: Why doesn't form submit when it is in a Bootstrap modal?
body: <p>Already figured out the issue, but I assume someone else will encounter something similar.
  I tried adding an <code>Html.BeginForm</code> to a modal in both the main view and in a partial view.</p>
  <pre><code>@model ViewModel
  
  @using (Html.BeginForm(&quot;Category&quot;, &quot;Home&quot;, FormMethod.Post))
  {
      &lt;!-- Modal --&gt;
      &lt;div class=&quot;modal fade&quot; id=&quot;categoryModal&quot; tabindex=&quot;-1&quot; role=&quot;dialog&quot; aria-labelledby=&quot;exampleModalLabel&quot; aria-hidden=&quot;true&quot;&gt;
          &lt;div class=&quot;modal-dialog&quot; role=&quot;document&quot;&gt;
              &lt;div class=&quot;modal-content&quot;&gt;
                  &lt;div class=&quot;modal-header&quot;&gt;
                      &lt;button type=&quot;button&quot; class=&quot;close&quot; data-dismiss=&quot;modal&quot; aria-label=&quot;Close&quot;&gt;&lt;span aria-hidden=&quot;true&quot;&gt;&amp;times;&lt;/span&gt;&lt;/button&gt;
                      &lt;h4 class=&quot;modal-title&quot; id=&quot;confirmModalLabel&quot;&gt;Select Category&lt;/h4&gt;
                  &lt;/div&gt;
                  &lt;div class=&quot;modal-body&quot;&gt;
                      &lt;div class=&quot;form-group&quot;&gt;
                          @Html.CheckBoxFor(x =&gt; x.Something)
                          &lt;label&gt;Something&lt;/label&gt;
                      &lt;/div&gt;
                      &lt;div class=&quot;form-group&quot;&gt;
                          @Html.CheckBoxFor(x =&gt; x.SomethingElse)
                          &lt;label&gt;Something Else&lt;/label&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class=&quot;modal-footer&quot;&gt;
                      &lt;input type=&quot;submit&quot; class=&quot;btn btn-success&quot; data-dismiss=&quot;modal&quot; value=&quot;Save&quot; /&gt;
                      &lt;button type=&quot;button&quot; class=&quot;btn btn-secondary&quot; data-dismiss=&quot;modal&quot;&gt;Cancel&lt;/button&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  }
  </code></pre>