bootstrap modal show callback code example Example: bootstrap modal show event $('#code').on('shown.bs.modal', function (e) { // do something... })