1$(window).on('shown.bs.modal', function() {
2 $('#code').modal('show');
3 alert('shown');
4});
1<!-- AJAX response must be wrapped in the modal's root class. -->
2<div class="modal">
3 <p>Second AJAX Example!</p>
4</div>
1<!-- Modal HTML embedded directly into document -->
2<div id="ex1" class="modal">
3 <p>Thanks for clicking. That felt good.</p>
4 <a href="#" rel="modal:close">Close</a>
5</div>
6
7<!-- Link to open the modal -->
8<p><a href="#ex1" rel="modal:open">Open Modal</a></p>
1 $("#sticky").modal({
2 escapeClose: false,
3 clickClose: false,
4 showClose: false
5});