I have an mvc generated form (@Html.BeginForm()) with button of type=”submit” within bootstrap modal overlay.
<button aria-hidden="true" data-dismiss="modal" class="btn" type="submit">Close</button>
When I click the button – all it does is closes the modal.
Submit action (POST to the controller) is not performed.
You might have to remove the
data-dismiss="modal"property since that triggers theModalto close instead of doing a submit.