how to call function on modal close code example
Example 1: call function on modal open
$('#myModal').on('shown.bs.modal', function (e) {
// do something...
})
Example 2: javascript modal close
$('#closemodal').click(function() {
$('#modalwindow').modal('hide');
});
Example 3: when modal close event
$("yourid").on('hide.bs.modal', function(){
// do it here
});