How to close modal window in bootstrap?

Good day!
On the website the button "Calculate cost" in a modal window bootstrap out form calculator.
After counting there is the option to print the result. this script
function printDiv(divName) {
 var printContents = document.getElementById(divName).innerHTML;
 var originalContents = document.body.innerHTML;
 document.body.innerHTML = printContents;
 document.body.innerHTML = originalContents;}

And that after printing there is the problem-it doesn't close the modal window.
standard button burrowscope window does not want to work
<button type="button" class="close" data-dismiss="modal" aria-label="Close">

I understand that it interferes with the script of fine print, but how to get around lack of knowledge.
or maybe the button to hang up the reboot page to do to clean the form?
In General I will appreciate any suggestions.
April 3rd 20 at 18:49
0 answer

Find more questions by tags JavaScriptPrintBootstrapWordPress