bootstrap modal if closed code example Example: bootstrap modal on close $('#myModal').on('hidden.bs.modal', function () { // do something… });