run jquery on hide modal code example
Example 1: hide and show modal jquery
$('#myModal').modal('toggle');
$('#myModal').modal('show');
$('#myModal').modal('hide');
Example 2: modal show not close jquery
jQuery('#modal_ajax').modal('show', {backdrop: 'static', keyboard: false});