OnClick Open Modal jQuery
$('#myModal').modal('toggle');
$('#myModal').modal('show');
$('#myModal').modal('hide');
Cheerful Chimpanzee
$('#myModal').modal('toggle');
$('#myModal').modal('show');
$('#myModal').modal('hide');
$('#myModal').modal('show');
$(window).on('shown.bs.modal', function() {
$('#code').modal('show');
alert('shown');
});
$('#my-modal').modal({
show: 'false'
});