JQuery no Modal Show
$(window).on('shown.bs.modal', function() {
$('#code').modal('show');
alert('shown');
});
Matteoweb
$(window).on('shown.bs.modal', function() {
$('#code').modal('show');
alert('shown');
});
<!-- Modal HTML embedded directly into document -->
<div id="ex1" class="modal">
<p>Thanks for clicking. That felt good.</p>
<a href="#" rel="modal:close">Close</a>
</div>
<!-- Link to open the modal -->
<p><a href="#ex1" rel="modal:open">Open Modal</a></p>
$("#sticky").modal({
escapeClose: false,
clickClose: false,
showClose: false
});