jquery data dismiss modal code example
Example 1: jquery close bootstrap model
$('#modal').modal('hide');
Example 2: close bootstrap modal with javascript
$('#myModal').modal('hide');
$('#modal').modal('hide');
$('#myModal').modal('hide');