modal codes bootstrap 4 code example
Example 1: modal in bootstrap 4
$('#myModal').modal('show')
Example 2: modal in bootstrap 4
$('#myModal').modal('toggle')
Example 3: modal in bootstrap 4
$('#myModal').modal('hide')
$('#myModal').modal('show')
$('#myModal').modal('toggle')
$('#myModal').modal('hide')