find attribute in bootstrap modal jquery code example
Example 1: bootstrap 4 hide modal via javascript
$('#myModal').modal('hide')
Example 2: html data-target modal
$('#myModal').modal('show')
$('#myModal').modal('hide')
$('#myModal').modal('show')