show bootstrap modal on button click code example
Example 1: programmatically show modal boostrap
$('#myModal').modal('show');
Example 2: close bootstrap modal with javascript
$('#myModal').modal('hide');
$('#myModal').modal('show');
$('#myModal').modal('hide');