close bootstrap dialog via html code example
Example 1: jquery close bootstrap model
$('#modal').modal('hide');
Example 2: open bootstrap modal with javascript
$("#myModal").modal()
$('#modal').modal('hide');
$("#myModal").modal()