close modal on success ajax code example Example: on modal close jquery $('#myModal').on('hidden.bs.modal', function () { // do something… })