modal bootstrap 5 cannot show code example
Example 1: modal in bootstrap 4
$('#myModal').modal('show')
Example 2: modal in bootstrap 4
$('#myModal').modal('toggle')
$('#myModal').modal('show')
$('#myModal').modal('toggle')