function for when a bootstrap modal is show jquery code example
Example: bootstrap show modal jquery
$('#myModal').modal('toggle');
$('#myModal').modal('show');
$('#myModal').modal('hide');
$('#myModal').modal('toggle');
$('#myModal').modal('show');
$('#myModal').modal('hide');