mostrar programaticamente boostrap modal
$('#myModal').modal('show');
Jerome Choo
$('#myModal').modal('show');
$('#code').on('shown.bs.modal', function (e) {
// do something...
})
<script type="text/javascript">
$(document).ready(function () {
$('#mymodal').on('shown.bs.modal', function() {
generate_modal_body();
}) ;
});
</script>