bootstrap when modal show code example
Example 1: programmatically show modal boostrap
$('#myModal').modal('show');
Example 2: bootstrap show modal jquery
$('#myModal').modal('toggle');
$('#myModal').modal('show');
$('#myModal').modal('hide');
$('#myModal').modal('show');
$('#myModal').modal('toggle');
$('#myModal').modal('show');
$('#myModal').modal('hide');