call function on modal close code example
Example 1: on modal close jquery
$('#myModal').on('hidden.bs.modal', function () {
// do something…
})
Example 2: javascript modal close
$('#closemodal').click(function() {
$('#modalwindow').modal('hide');
});