apply something on closing modal jquery code example
Example 1: on modal close jquery
$('#myModal').on('hidden.bs.modal', function () {
// do something…
})
Example 2: when modal close event
$("yourid").on('hide.bs.modal', function(){
// do it here
});