bootstrap modal data dismiss code example
Example 1: close bootstrap modal with javascript
$('#myModal').modal('hide');
Example 2: bootstrap modal don't dismiss
<div class="modal fade" id="myModal" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">