when modal hide alert jquery code example
Example: hide and show modal jquery
$('#myModal').modal('toggle');
$('#myModal').modal('show');
$('#myModal').modal('hide');
$('#myModal').modal('toggle');
$('#myModal').modal('show');
$('#myModal').modal('hide');