I have a modal of bootstrap
where it has a button that closes modal
but I wanted it to barely close the modal, open another. I already tried to put a id
on the button to when clicking to open the modal again but it is not working.
This is what I have
<div id="fullCalModal" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-footer" style="margin-top:0;">
<button type="button" class="btn btn-success" id="open">Inscrever-me nesta aula!</button>
<button type="button" class="btn btn-info" data-dismiss="modal">Fechar</button>
</div>
</div>
</div>
</div>
<div id="fullCalModal2" class="modal fade">
//Texto complementar com divs
</div>
To open the first modal, I open by loading a event
of FullCalendar
, and the other externally.
$("#open").click(function(){
$("#fullCalModal2").modal();
});