Programming Tips - jQueryUI / Bootstrap: close a modal dialog

Date: 2019jul24 Library: Bootstrap Library: jQueryUI Language: javaScript Q. jQueryUI / Bootstrap: close a modal dialog A.
let dlg = $('#mydialog'); // jQuery
jQueryUI
dlg.dialog('close');
Bootstrap (versions 3 and 4)
dlg.modal('hide');