Answer the question
In order to leave comments, you need to log in
Bootstrap: Why doesn't the modal show up if the button* is inside some form?
* - refers to the button on which the modal window is shown.
Here is the code for the button (from the Bootstrap manual):
<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
Launch demo modal
</button>
$('#myModal').modal('show');
$('#myModal').modal('show');
Answer the question
In order to leave comments, you need to log in
If outside of the form works, then probably onsubmit intercepts sooner.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question