how to keep bootstrap modal open code example
Example 1: close bootstrap modal with javascript
$('#myModal').modal('hide');
Example 2: how to show bootstrap modal
<script>
var myModal = new bootstrap.Modal(document.getElementById('ModalID'))
myModal.show()
</script>