2
I’m having a problem with my modal bootstrap. It is as simple as possible, I took the example of the bootstrap site itself to test it but when I click the button, it opens and closes immediately after automatically
<button type="button" class="btn btn-warning btn-lg" data-target="#modal" data-toggle="modal" id="botao_pedido">Faça seu pedido</button>
<div class="modal fade" id="modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
</div>
<div class="modal-body">
Olá
</div>
</div><!--modal-content-->
</div><!--modal-dialog-->
Console ta normal
– Matheus Lima
Are the 3 Imports being made? (bootstrap.min.css, jquery.min.js and bootstrap.min.js). If they are, test in another browser.
– fnx
Just complementing... I ran your example right here in my browser (firefox). Versions 3.3.7 of bootstrap and jquery 1.12.4
– fnx
Yes, I managed to resolve the situation but thank you for your attention to the problem
– Matheus Lima