on modal show and hide jquery code example
Example 1: onclick open modal jquery
$('#myModal').modal('show');
Example 2: onclick open modal jquery
$('#my-modal').modal({
show: 'false'
});
$('#myModal').modal('show');
$('#my-modal').modal({
show: 'false'
});