close modal with button code example
Example 1: javascript modal close
$('#closemodal').click(function() {
$('#modalwindow').modal('hide');
});
Example 2: close bootstrap modal with javascript
$('#myModal').modal('hide');
Example 3: bootstrap modal popup
Example 4: html data-target modal
$('#myModal').modal('show')